diff options
author | Gonglei <arei.gonglei@huawei.com> | 2014-09-30 14:10:28 +0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2014-09-30 11:08:38 +0200 |
commit | 6a0c6b59788627541faf70864464f1e155dc18d7 (patch) | |
tree | 0c36a06438b7c3b4d876a7c7d7e66c8f226f21b8 /.mailmap | |
parent | 7779edfeb1822ff5f554a4c1f3e9798789a9352c (diff) |
virtio-net: fix virtio-net child refcount in transports
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.gonglei@huawei.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Cc: qemu-stable@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to '.mailmap')
0 files changed, 0 insertions, 0 deletions