mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-08 18:57:22 +00:00
vhost: vringh: Modify the return value check
[ Upstream commit82a8d0fda5] 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>
This commit is contained in:
parent
0928ebbfc9
commit
cfa0654402
1 changed files with 4 additions and 3 deletions
Loading…
Add table
Add a link
Reference in a new issue