summary refs log tree commit diff stats
path: root/hw/vfio-user/pci.c
diff options
context:
space:
mode:
authorZhenzhong Duan <zhenzhong.duan@intel.com>2025-06-23 18:22:32 +0800
committerCédric Le Goater <clg@redhat.com>2025-06-26 08:55:37 +0200
commitabc6249d42f9681d5b659716434ef374c6e0edef (patch)
tree2f81ae5ff93475dadd3096c7664c1ecc0765dd0a /hw/vfio-user/pci.c
parenteafb408629d980dac7db24abe5b8fab2c7a67525 (diff)
downloadfocaccia-qemu-abc6249d42f9681d5b659716434ef374c6e0edef.tar.gz
focaccia-qemu-abc6249d42f9681d5b659716434ef374c6e0edef.zip
vfio/container: Fix SIGSEGV when open container file fails
When open /dev/vfio/vfio fails, SIGSEGV triggers because
vfio_listener_unregister() doesn't support a NULL bcontainer
pointer.

Fixes: a1f267a7d4d9 ("vfio/container: reform vfio_container_connect cleanup")
Signed-off-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Link: https://lore.kernel.org/qemu-devel/20250623102235.94877-2-zhenzhong.duan@intel.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
Diffstat (limited to 'hw/vfio-user/pci.c')
0 files changed, 0 insertions, 0 deletions