diff options
author | Marc-André Lureau | 2017-02-07 10:57:26 +0100 |
---|---|---|
committer | Marc-André Lureau | 2017-03-01 08:51:28 +0100 |
commit | 675f22c6d3b0b4b66efa27f978f2bd9575b5a5ab (patch) | |
tree | 87d608aeb1f5cab43cd4d0069ad221535bb81864 /hw/core/loader.c | |
parent | tests: fix virtio-9p-test leaks (diff) | |
download | qemu-675f22c6d3b0b4b66efa27f978f2bd9575b5a5ab.tar.gz qemu-675f22c6d3b0b4b66efa27f978f2bd9575b5a5ab.tar.xz qemu-675f22c6d3b0b4b66efa27f978f2bd9575b5a5ab.zip |
bus: do not unref hotplug handler
Apparently, none of the bus owner give a reference to the hotplug
handler property, do not unref it on bus release.
Furthermore, a bus is allowed to be its own hotplug handler, which can
be seen in qbus_set_bus_hotplug_handler() function. However, in this
case, the reference can't be given to the property, or this will create
a cyclic dependency and the bus will never be free.
Each bus owner should manage the lifecycle of the hotplug handler.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/core/loader.c')
0 files changed, 0 insertions, 0 deletions