vhost-user-fs: Back up vqs before cleaning up vhost_dev
commit331acddc87b739c64b936ba4e58518f8491f1c6b
authorAkihiko Odaki <akihiko.odaki@daynix.com>
Mon, 30 Jan 2023 14:02:25 +0000 (30 23:02 +0900)
committerStefan Hajnoczi <stefanha@redhat.com>
Thu, 9 Feb 2023 15:21:11 +0000 (9 10:21 -0500)
treeea9a81915eaed07ae5574c1cc5a0cd6316758421
parent417296c8d8588f782018d01a317f88957e9786d6
vhost-user-fs: 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: 98fc1ada4c ("virtio: add vhost-user-fs base device")
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20230130140225.77964-1-akihiko.odaki@daynix.com>
hw/virtio/vhost-user-fs.c