Re: [PATCH] cifs: Fix copy_to_iter return value check
From: Fushuai Wang
Date: Sun Oct 05 2025 - 09:52:53 EST
>> The return value of copy_to_iter() function will never be negative,
>> it is the number of bytes copied, or zero if nothing was copied.
> …
>
> Why do you propose to preserve the comparison operator part “<” then?
> Would the condition check “!length” be nicer at this place?
Yes, you are right. I will send a v2 shortly.
Regards,
Wang.