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 protected]>
> Link:
> https://lore.kernel.org/all/[email protected]
> Signed-off-by: Michael S. Tsirkin <[email protected]>
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 protected]>