diff options
author | Eric Auger <eric.auger@redhat.com> | 2020-09-08 21:33:08 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2020-09-29 02:14:30 -0400 |
commit | 59bf980d22af00880ab7f24f3da3c40e0cf13e98 (patch) | |
tree | 3e4793d9dfad50b6eec7dddc0332dd256a430190 /hw/virtio/virtio-iommu-pci.c | |
parent | 63e79833c46fa6d21efb1c4d966b0a204c4b7b0f (diff) |
virtio-iommu: Check gtrees are non null before destroying them
If realize fails, domains and endpoints trees may be NULL. On
unrealize(), this produces assertions:
"GLib: g_tree_destroy: assertion 'tree != NULL' failed"
Check that the trees are non NULL before destroying them.
Cc: qemu-stable@nongnu.org
Signed-off-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Message-Id: <20200908193309.20569-2-eric.auger@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/virtio/virtio-iommu-pci.c')
0 files changed, 0 insertions, 0 deletions