diff options
author | zhang jiao <zhangjiao2@cmss.chinamobile.com> | 2025-09-10 17:17:38 +0800 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2025-10-01 07:24:20 -0400 |
commit | 82a8d0fda55b35361ee7f35b54fa2b66d7847d2b (patch) | |
tree | ef4cde9fa2934f45172dd344554621db816802b7 /tools/docs/lib/parse_data_structs.py | |
parent | e5f0a698b34ed76002dc5cff3804a61c80233a7a (diff) |
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: 309bba39c945 ("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>
Diffstat (limited to 'tools/docs/lib/parse_data_structs.py')
0 files changed, 0 insertions, 0 deletions