On Mon, Mar 25, 2024 at 04:56:47PM +0100, Sabrina Dubroca wrote:
Make sure that we don't return more bytes than we actually received if the userspace buffer was bogus. We expect to receive at least the rest of rec1, and possibly some of rec2 (currently, we don't, but that would be ok).
Signed-off-by: Sabrina Dubroca sd@queasysnail.net
Reviewed-by: Simon Horman horms@kernel.org