mirror of
https://github.com/utmapp/qemu.git
synced 2026-12-01 22:23:23 -10:00
virtio: reset region cache when on queue deletion
https://bugzilla.redhat.com/show_bug.cgi?id=1708480 Fix leak of region reference that prevents complete device deletion on hot unplug. Cc: [email protected] Signed-off-by: Yuri Benditovich <[email protected]> Message-Id: <[email protected]> Reviewed-by: Michael S. Tsirkin <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]>
This commit is contained in:
1 parent
1049f4c62c
commit
421afd2fe8
1 file changed
+1
@@ -2344,6 +2344,7 @@ void virtio_delete_queue(VirtQueue *vq)
|
||||
vq->handle_aio_output = NULL;
|
||||
g_free(vq->used_elems);
|
||||
vq->used_elems = NULL;
|
||||
virtio_virtqueue_reset_region_cache(vq);
|
||||
}
|
||||
|
||||
void virtio_del_queue(VirtIODevice *vdev, int n)
|
||||
|
||||
Reference in new issue
Block a user