Stefan Hajnoczi c5d49db446 virtio: fix virtio-blk 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-blk child is not finalized!

Drop our reference after the child property has been added to the
parent.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
2014-07-01 09:15:02 +02:00
..
2014-06-23 11:12:28 -04:00
2014-06-23 11:01:24 -04:00
2014-06-20 16:22:07 +01:00
2014-06-23 11:01:25 -04:00
2014-06-24 20:01:24 +04:00
2014-06-27 13:48:26 +02:00
2014-06-19 18:44:22 +03:00
2014-05-28 17:36:21 +02:00
2014-06-20 23:40:16 +02:00
2014-06-30 09:56:08 -06:00
2014-06-29 19:39:43 +03:00
2014-06-27 13:48:22 +02:00
2014-06-23 17:49:49 +03:00
2014-06-27 13:48:24 +02:00
2014-05-28 17:36:21 +02:00
2014-06-27 09:27:56 -04:00