qemu-e2k/hw/pci
Marcel Apfelbaum 306077640a hw/pci: fix error flow in pci multifunction init
Scenario:
  - There is a non multifunction pci device A on 00:0X.0.
  - Hot-plug another multifunction pci device B at 00:0X.1.
  - The operation will fail of course.
  - Try to hot-plug the B device 2-3 more times, qemu will crash.

Reason: The error flow leaves the B's address space into global address spaces
list, but the device object is freed. Fixed that.

Signed-off-by: Marcel Apfelbaum <marcel.a@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2014-01-26 13:11:45 +02:00
..
Makefile.objs
msi.c
msix.c
pci_bridge.c acpi,pci,pc,fedora,virtio fixes and enhancements 2014-01-10 11:04:48 -08:00
pci_host.c
pci-hotplug-old.c qdev: Drop misleading qdev_free() function 2013-11-05 18:06:38 +01:00
pci-stub.c
pci.c hw/pci: fix error flow in pci multifunction init 2014-01-26 13:11:45 +02:00
pcie_aer.c bswap.h: Remove cpu_to_be32wu() 2013-11-05 19:57:47 -08:00
pcie_host.c
pcie_port.c
pcie.c qdev: Drop misleading qdev_free() function 2013-11-05 18:06:38 +01:00
shpc.c qdev: Drop misleading qdev_free() function 2013-11-05 18:06:38 +01:00
slotid_cap.c