diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2022-01-06 07:57:46 -0500 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2022-01-14 18:50:53 -0500 |
commit | 1861ba626ae9b98136f3e504208cdef6b29cd3ec (patch) | |
tree | 8f0be7c4b1e6da5a438447e0dc279362b045d380 /drivers/vhost/vdpa.c | |
parent | 080063920777af65105e5953e2851e036376e3ea (diff) | |
download | linux-1861ba626ae9b98136f3e504208cdef6b29cd3ec.tar.bz2 |
virtio_ring: mark ring unused on error
A recently added error path does not mark ring unused when exiting on
OOM, which will lead to BUG on the next entry in debug builds.
TODO: refactor code so we have START_USE and END_USE in the same function.
Fixes: fc6d70f40b3d ("virtio_ring: check desc == NULL when using indirect with packed")
Cc: "Xuan Zhuo" <xuanzhuo@linux.alibaba.com>
Cc: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Reviewed-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'drivers/vhost/vdpa.c')
0 files changed, 0 insertions, 0 deletions