]> git.ipfire.org Git - thirdparty/qemu.git/commit
vhost-user-rng: Back up vqs before cleaning up vhost_dev
authorAkihiko Odaki <akihiko.odaki@daynix.com>
Mon, 30 Jan 2023 14:05:16 +0000 (23:05 +0900)
committerMichael Tokarev <mjt@tls.msk.ru>
Wed, 29 Mar 2023 07:20:04 +0000 (10:20 +0300)
commitb8db116da19f39285347adc1438df200b2db61e5
treecd3d5b3dcfcbc64fda10ec1bfea52e93893a89fe
parentb5be595c62ea6cfe36d73a29e274b78bca704c81
vhost-user-rng: Back up vqs before cleaning up vhost_dev

vhost_dev_cleanup() clears vhost_dev so back up its vqs member to free
the memory pointed by the member.

Fixes: 821d28b88f ("vhost-user-rng: Add vhost-user-rng implementation")
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Message-Id: <20230130140516.78078-1-akihiko.odaki@daynix.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
(cherry picked from commit f0dac71596d4b87a1a77d1f4efb6a6adb4730d7b)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/virtio/vhost-user-rng.c