]> git.ipfire.org Git - thirdparty/qemu.git/commit
Don't leak VLANClientState on PCI hot remove
authorMark McLoughlin <markmc@redhat.com>
Wed, 1 Jul 2009 15:46:38 +0000 (16:46 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 10 Jul 2009 22:26:03 +0000 (17:26 -0500)
commited8f8da7a67999cd8b89e449b8b101f14fa16272
treed24acffc6c1e10e6ec7924f6f318dedfbbfcc779
parent960b646371d9c91bbb908fc97ae277a384777136
Don't leak VLANClientState on PCI hot remove

destroy_nic() requires that NICInfo::private by a PCIDevice pointer,
but then goes on to require that the same pointer matches
VLANClientState::opaque.

That is no longer the case for virtio-net since qdev and wasn't
previously the case for rtl8139, ne2k_pci or eepro100.

Make the situation a lot more clear by maintaining a VLANClientState
pointer in NICInfo.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/device-hotplug.c
hw/etraxfs_eth.c
hw/mcf_fec.c
hw/mipsnet.c
hw/ne2000.c
hw/usb-net.c
net.h