mirror-linux/drivers/vhost
Michael S. Tsirkin 439263376c 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: 309bba39c9 ("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>
2025-09-26 17:31:35 -07:00
..
Kconfig vhost: Reintroduce kthread API and add mode selection 2025-08-01 09:11:09 -04:00
Makefile
iotlb.c
net.c vhost-net: flush batched before enabling notifications 2025-09-19 04:15:26 -04:00
scsi.c vhost-scsi: fix argument order in tport allocation error message 2025-09-15 18:25:58 -04:00
test.c
test.h
vdpa.c irqbypass: Require producers to pass in Linux IRQ number during registration 2025-06-20 13:52:41 -07:00
vhost.c vhost: initialize vq->nheads properly 2025-08-05 05:57:40 -04:00
vhost.h virtio, vhost: features, fixes 2025-08-01 14:17:48 -07:00
vringh.c vhost: vringh: Fix copy_to_iter return value check 2025-09-26 17:31:35 -07:00
vsock.c vsock/virtio: Rename virtio_vsock_skb_rx_put() 2025-08-01 09:11:09 -04:00