[libvirt] [PATCH] qemu_hotplug: Don't free the PCI device structure after hot-unplug
Eric Blake
eblake at redhat.com
Mon May 21 16:17:38 UTC 2012
On 05/21/2012 09:53 AM, Peter Krempa wrote:
> 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.
> ---
> src/qemu/qemu_hotplug.c | 8 +++++---
> 1 files changed, 5 insertions(+), 3 deletions(-)
ACK.
This whole area of code is rather nasty.
--
Eric Blake eblake at redhat.com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 620 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20120521/4151ae34/attachment-0001.sig>
More information about the libvir-list
mailing list