qemu/hw/vfio
Eric Auger 07321a6d08 hw/vfio/container: Fix SIGSEV on vfio_container_instance_finalize()
In vfio_connect_container's error path, the base container is
removed twice form the VFIOAddressSpace QLIST: first on the
listener_release_exit label and second, on free_container_exit
label, through object_unref(container), which calls
vfio_container_instance_finalize().

Let's remove the first instance.

Fixes: 938026053f ("vfio/container: Switch to QOM")
Signed-off-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Reviewed-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
2024-07-23 17:14:52 +02:00
..
amd-xgbe.c Include migration/vmstate.h less 2019-08-16 13:31:52 +02:00
ap.c vfio/{ap, ccw}: Use warn_report_err() for IRQ notifier registration errors 2024-06-24 08:03:34 +02:00
calxeda-xgmac.c Include migration/vmstate.h less 2019-08-16 13:31:52 +02:00
ccw.c vfio/{ap, ccw}: Use warn_report_err() for IRQ notifier registration errors 2024-06-24 08:03:34 +02:00
common.c memory: remove IOMMU MR iommu_set_page_size_mask() callback 2024-07-09 11:50:37 +02:00
container-base.c vfio-container-base: Introduce vfio_container_get_iova_ranges() helper 2024-07-09 11:50:37 +02:00
container.c hw/vfio/container: Fix SIGSEV on vfio_container_instance_finalize() 2024-07-23 17:14:52 +02:00
cpr.c vfio/cpr: Make vfio_cpr_register_container() return bool 2024-05-16 16:59:20 +02:00
display.c vfio/display: Fix vfio_display_edid_init() error path 2024-07-09 11:50:37 +02:00
helpers.c vfio/container: Implement HostIOMMUDeviceClass::realize() handler 2024-06-24 23:15:30 +02:00
igd.c vfio/igd: Use g_autofree in vfio_probe_igd_bar4_quirk() 2024-05-22 10:04:22 +02:00
iommufd.c HostIOMMUDevice: Introduce get_page_size_mask() callback 2024-07-09 11:50:37 +02:00
Kconfig hw/vfio: Move the IGD quirk code to a separate file 2020-02-06 11:55:42 -07:00
meson.build vfio: register container for cpr 2024-03-08 22:10:13 +01:00
migration.c vfio/migration: Enhance VFIO migration state tracing 2024-05-16 16:59:20 +02:00
pci-quirks.c vfio/pci-quirks: Make vfio_add_*_cap() return bool 2024-05-22 10:04:22 +02:00
pci.c vfio/container: Remove VFIOContainerBase::ops 2024-06-24 23:15:31 +02:00
pci.h vfio/pci-quirks: Make vfio_add_*_cap() return bool 2024-05-22 10:04:22 +02:00
platform.c vfio/platform: Make vfio_populate_device() and vfio_base_device_init() return bool 2024-05-22 10:04:21 +02:00
spapr.c vfio/container: Change VFIOContainerBase to use QOM 2024-06-24 23:15:31 +02:00
trace-events hw/vfio: Remove newline character in trace events 2024-06-10 13:05:27 -04:00
trace.h trace: switch position of headers to what Meson requires 2020-08-21 06:18:24 -04:00