On Tue, 30 Sep 2014 14:10:28 +0800 <arei.gong...@huawei.com> wrote: > From: Gonglei <arei.gong...@huawei.com> > > object_initialize() leaves the object with a refcount of 1. > object_property_add_child() adds its own reference which is dropped > again when the property is deleted. > > The upshot of this is that we always have a refcount >= 1. Upon hot > unplug the virtio-net child is not finalized! > > Drop our reference after the child property has been added to the > parent. > > Signed-off-by: Gonglei <arei.gong...@huawei.com> > --- > hw/s390x/s390-virtio-bus.c | 1 + > hw/s390x/virtio-ccw.c | 1 + > hw/virtio/virtio-pci.c | 1 + > 3 files changed, 3 insertions(+)
Reviewed-by: Cornelia Huck <cornelia.h...@de.ibm.com>