Commit 82a8d0fd authored by zhang jiao's avatar zhang jiao Committed by Michael S. Tsirkin
Browse files

vhost: vringh: Modify the return value check



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

Fixes: 309bba39 ("vringh: iterate on iotlb_translate to handle large translations")
Cc: "Stefano Garzarella" <sgarzare@redhat.com>
Signed-off-by: default avatarzhang jiao <zhangjiao2@cmss.chinamobile.com>
Message-Id: <20250910091739.2999-1-zhangjiao2@cmss.chinamobile.com>
Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
parent e5f0a698
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment