summaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorGonglei <arei.gonglei@huawei.com>2014-09-30 14:10:37 +0800
committerMichael Roth <mdroth@linux.vnet.ibm.com>2015-01-06 16:03:37 -0600
commitcf0276b7c02211773836920d8ebd9d582b32161f (patch)
tree7e6394849a2fd1a5ca7ff087cd13ce9a2c824296 /block
parentb5ad76a7094e73069a4a583e20d43eb6b5506500 (diff)
downloadqemu-cf0276b7c02211773836920d8ebd9d582b32161f.tar.gz
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> (cherry picked from commit 8f3d60e568f53cb3ccdedd917f8e49cdb304973b) Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions