android_kernel_motorola_sm6375/drivers/vhost
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jason Wang 86ae9f0efc vhost: fail early when __vhost_add_used() fails
[ Upstream commit b4ba1207d45adaafa2982c035898b36af2d3e518 ]

This patch fails vhost_add_used_n() early when __vhost_add_used()
fails to make sure used idx is not updated with stale used ring
information.

Reported-by: Eugenio Pérez <eperezma@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Message-Id: <20250714084755.11921-2-jasowang@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Tested-by: Lei Yang <leiyang@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-08-28 16:21:27 +02:00
..
Kconfig
Kconfig.vringh
Makefile
net.c treewide: Remove uninitialized_var() usage 2023-06-09 10:29:01 +02:00
scsi.c
test.c
test.h
vhost.c vhost: fail early when __vhost_add_used() fails 2025-08-28 16:21:27 +02:00
vhost.h
vringh.c
vsock.c