On Tue, Jun 22, 2010 at 11:55:32AM +0900, Isaku Yamahata wrote: > pci qdev exit code patch(pci_unregister_device) doesn't release > all the resource allocated by pci qdev initialization.(pci_qdev_init) > This patch series sorts it out and make pci::hotplug error code to the caller. > > Isaku Yamahata (3): > pci: fix memory leak of PCIDevice::romfile. > pci: option rom clean up. > pci hotplug: make pci hotplug return value to caller.
Applied (tweaked 3/3 to assert on unregister: if we can not cleanup, we are in an unknown state). > hw/pci.c | 26 ++++++++++++++++++++++---- > 1 files changed, 22 insertions(+), 4 deletions(-)