]> git.ipfire.org Git - thirdparty/qemu.git/commit
vhost: release virtqueue objects in error path
authorPrasad Pandit <pjp@fedoraproject.org>
Mon, 29 May 2023 11:43:33 +0000 (17:13 +0530)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 23 Jun 2023 06:54:44 +0000 (02:54 -0400)
commit77ece20ba04582d94c345ac0107ddff2fd18d27a
tree050b22dd47337feb628070a074bc43aa63d55fa3
parent1e3ffb34f764f8ac4c003b2b2e6a775b2b073a16
vhost: release virtqueue objects in error path

vhost_dev_start function does not release virtqueue objects when
event_notifier_init() function fails. Release virtqueue objects
and log a message about function failure.

Signed-off-by: Prasad Pandit <pjp@fedoraproject.org>
Message-Id: <20230529114333.31686-3-ppandit@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Fixes: f9a09ca3ea ("vhost: add support for configure interrupt")
Reviewed-by: Peter Xu <peterx@redhat.com>
Cc: qemu-stable@nongnu.org
Acked-by: Jason Wang <jasowang@redhat.com>
hw/virtio/vhost.c