summaryrefslogtreecommitdiff
path: root/rust/helpers/build_bug.c
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2025-09-25 02:04:08 -0400
committerJakub Kicinski <kuba@kernel.org>2025-09-26 17:31:35 -0700
commit439263376c2c4e126cac0d07e4987568de4eaba5 (patch)
tree3af322adbbf754296d31e05ab9123a07ca8bceef /rust/helpers/build_bug.c
parente9f35294e18da82162004a2f35976e7031aaf7f9 (diff)
vhost: vringh: Fix copy_to_iter return value check
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 <zhangjiao2@cmss.chinamobile.com> Link: https://lore.kernel.org/all/20250910091739.2999-1-zhangjiao2@cmss.chinamobile.com Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Simon Horman <horms@kernel.org> Fixes: 309bba39c945 ("vringh: iterate on iotlb_translate to handle large translations") Link: https://patch.msgid.link/cd637504a6e3967954a9e80fc1b75e8c0978087b.1758723310.git.mst@redhat.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'rust/helpers/build_bug.c')
0 files changed, 0 insertions, 0 deletions