diff options
author | Gonglei <arei.gonglei@huawei.com> | 2014-09-30 14:10:30 +0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2014-09-30 11:08:56 +0200 |
commit | 1312f12bcc8911ed99b67227fb9d1607295f71ed (patch) | |
tree | 519cbba8c7ae9d6ca976822db7ba7f197ffceb69 /monitor.c | |
parent | c39343fd811a22c921fc08e9e6ca62c8e7539264 (diff) |
virtio/vhost-scsi: fix virtio-scsi/vhost-scsi 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-scsi/vhost-scsi 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 'monitor.c')
0 files changed, 0 insertions, 0 deletions