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 <zhangji...@cmss.chinamobile.com>
> Link: 
> https://lore.kernel.org/all/20250910091739.2999-1-zhangji...@cmss.chinamobile.com
> Signed-off-by: Michael S. Tsirkin <m...@redhat.com>

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 <ho...@kernel.org>

Reply via email to