]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_hotplug: Don't free the PCI device structure after hot-unplug
authorPeter Krempa <pkrempa@redhat.com>
Mon, 21 May 2012 14:31:53 +0000 (16:31 +0200)
committerCole Robinson <crobinso@redhat.com>
Thu, 14 Jun 2012 22:22:51 +0000 (18:22 -0400)
commit3600eec4d18bab55acee98364e3378d542af928a
treeb7d18ce222a87edafe53a4dfb3190520c88a0e48
parent67f5578681ded83d5e2f062e4b0884c977c2de17
qemu_hotplug: Don't free the PCI device structure after hot-unplug

The pciDevice structure corresponding to the device being hot-unplugged
was freed after it was "stolen" from activeList. The pointer was still
used for eg-inactive list. This patch removes the free of the structure
and frees it only if reset fails on the device.
(cherry picked from commit db19417fc012416639c2230e5f19717b84245ce5)
src/qemu/qemu_hotplug.c