mirror of
https://github.com/utmapp/qemu.git
synced 2026-12-02 15:46:49 -10:00
0077793a00a7ff4e44d6bdfe3469b61ba14962ec
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 <[email protected]>
Reviewed-by: Cornelia Huck <[email protected]>
Cc: [email protected]
Signed-off-by: Paolo Bonzini <[email protected]>
(cherry picked from commit 352fa88dfb)
Signed-off-by: Michael Roth <[email protected]>
Read the documentation in qemu-doc.html or on http://wiki.qemu-project.org - QEMU team
Releases
1
QEMU v10.0.12 UTM Edition
Latest
Languages
C
82.4%
C++
6.6%
Python
3.4%
Dylan
2.9%
Shell
1.6%
Other
2.9%