linux-yocto/drivers/vhost
zhang jiao 78dc736266 vhost: vringh: Modify the return value check
[ Upstream commit 82a8d0fda55b35361ee7f35b54fa2b66d7847d2b ]

The return value of copy_from_iter and copy_to_iter can't be negative,
check whether the copied lengths are equal.

Fixes: 309bba39c9 ("vringh: iterate on iotlb_translate to handle large translations")
Cc: "Stefano Garzarella" <sgarzare@redhat.com>
Signed-off-by: zhang jiao <zhangjiao2@cmss.chinamobile.com>
Message-Id: <20250910091739.2999-1-zhangjiao2@cmss.chinamobile.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-10-15 11:58:07 +02:00
..
iotlb.c
Kconfig
Makefile
net.c vhost/net: Protect ubufs with rcu read lock in vhost_net_ubuf_put() 2025-09-04 15:30:20 +02:00
scsi.c vhost-scsi: Fix log flooding with target does not exist errors 2025-08-15 12:08:57 +02:00
test.c
test.h
vdpa.c
vhost.c vhost: fail early when __vhost_add_used() fails 2025-08-28 16:28:25 +02:00
vhost.h
vringh.c vhost: vringh: Modify the return value check 2025-10-15 11:58:07 +02:00
vsock.c vhost/vsock: Avoid allocating arbitrarily-sized SKBs 2025-08-28 16:28:36 +02:00