diff options
| author | Gonglei | 2014-09-30 08:10:37 +0200 |
|---|---|---|
| committer | Paolo Bonzini | 2014-09-30 11:09:59 +0200 |
| commit | 8f3d60e568f53cb3ccdedd917f8e49cdb304973b (patch) | |
| tree | b30f400b4e1883b80e811fc972bb4f6cfc1ec1e5 /include | |
| parent | virtio-9p: use aliases instead of duplicate qdev properties (diff) | |
| download | qemu-8f3d60e568f53cb3ccdedd917f8e49cdb304973b.tar.gz qemu-8f3d60e568f53cb3ccdedd917f8e49cdb304973b.tar.xz qemu-8f3d60e568f53cb3ccdedd917f8e49cdb304973b.zip | |
virtio-9p: fix virtio-9p 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
unplug the virtio-9p 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>
Cc: qemu-stable@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
