qemu-irix/hw/s390x
Gonglei 0077793a00 virtio-rng: fix virtio-rng 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-rng 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>
(cherry picked from commit 352fa88dfb)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
2015-01-06 16:02:58 -06:00
..
Makefile.objs
css.c s390x/css: reflect cpa in scsw 2014-07-08 15:08:03 +02:00
css.h s390/virtio-ccw: migration support 2014-06-10 09:50:27 +02:00
event-facility.c savevm: Remove all the unneeded version_minimum_id_old (rest) 2014-05-14 15:24:51 +02:00
ipl.c
s390-virtio-bus.c virtio-rng: fix virtio-rng child refcount in transports 2015-01-06 16:02:58 -06:00
s390-virtio-bus.h virtio-blk: use aliases instead of duplicate qdev properties 2014-07-01 09:15:02 +02:00
s390-virtio-ccw.c machine: Conversion of QEMUMachineInitArgs to MachineState 2014-05-28 17:35:01 +02:00
s390-virtio-hcall.c
s390-virtio.c machine: Conversion of QEMUMachineInitArgs to MachineState 2014-05-28 17:35:01 +02:00
s390-virtio.h
sclp.c
sclpcpu.c
sclpquiesce.c savevm: Remove all the unneeded version_minimum_id_old (rest) 2014-05-14 15:24:51 +02:00
virtio-ccw.c virtio-rng: fix virtio-rng child refcount in transports 2015-01-06 16:02:58 -06:00
virtio-ccw.h virtio-blk: use aliases instead of duplicate qdev properties 2014-07-01 09:15:02 +02:00