Re: [Qemu-devel] [PATCH v2 02/12] virtio-net: fix virtio-net child refcount in transports

2014-09-30 Thread Cornelia Huck
On Tue, 30 Sep 2014 14:10:28 +0800 wrote: > From: Gonglei > > 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.

[Qemu-devel] [PATCH v2 02/12] virtio-net: fix virtio-net child refcount in transports

2014-09-29 Thread arei.gonglei
From: Gonglei 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! Dr