Subject: Re: [PATCH net] vhost: vringh: Fix copy_to_iter return value check

From: Simon Horman <[email-masked]>
Date: Fri, 26 Sep 2025 10:51:57 +0100

On Thu, Sep 25, 2025 at 02:04:08AM -0400, Michael S. Tsirkin wrote:
> The return value of copy_to_iter can't be negative, check whether the
> copied length is equal to the requested length instead of checking for
> negative values.
> 
> Cc: zhang jiao <[email-masked]>
> Link: https://lore.kernel.org/all/[email-masked]
> Signed-off-by: Michael S. Tsirkin <[email-masked]>

Hi Michael,

As a patch for net, I think it would be nice to include a fixes tag.
Perhaps:

Fixes: 309bba39c945 ("vringh: iterate on iotlb_translate to handle large translations")

And nicer still to include some description of the failure scenario.

In any case, the code change looks good to me.

Reviewed-by: Simon Horman <[email-masked]>