]> www.infradead.org Git - users/dwmw2/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 S. Tsirkin <mst@redhat.com>
Thu, 2 Mar 2023 08:10:47 +0000 (03:10 -0500)
commitf0dac71596d4b87a1a77d1f4efb6a6adb4730d7b
tree9612514528382ad4aa9a438d4be442dcd9f9b02f
parent0126793bee853e7c134627f51d2de5428a612e99
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>
hw/virtio/vhost-user-rng.c