Il 07/01/2013 21:26, Anthony Liguori ha scritto:
>> > +object_ref(OBJECT(kid->child));
>> >
>> > QTAILQ_INSERT_HEAD(&bus->children, kid, sibling);
>> >
>> > +/* This transfers ownership of kid->child to the property. */
>> > snprintf(name, sizeof(name), "child[%d]", kid->inde
Paolo Bonzini writes:
> Each device has a reference through the BusChild. This reference
> was not accounted for, add it now.
>
> Signed-off-by: Paolo Bonzini
> ---
> hw/qdev.c | 5 +
> 1 file changed, 5 insertions(+)
>
> diff --git a/hw/qdev.c b/hw/qdev.c
> index e758131..87dfcb5 100644
>
Each device has a reference through the BusChild. This reference
was not accounted for, add it now.
Signed-off-by: Paolo Bonzini
---
hw/qdev.c | 5 +
1 file changed, 5 insertions(+)
diff --git a/hw/qdev.c b/hw/qdev.c
index e758131..87dfcb5 100644
--- a/hw/qdev.c
+++ b/hw/qdev.c
@@ -65,7 +6