On Wed, Apr 29, 2015 at 02:20:12PM -0500, Michael Roth wrote: > DRC objects attach themselves to an owner as a child > property. unref afterward to allow them to be finalized > when their owner is finalized. > > Signed-off-by: Michael Roth <mdr...@linux.vnet.ibm.com>
Reviewed-by: David Gibson <da...@gibson.dropbear.id.au> > --- > hw/ppc/spapr_drc.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/hw/ppc/spapr_drc.c b/hw/ppc/spapr_drc.c > index 48bf193..396a03b 100644 > --- a/hw/ppc/spapr_drc.c > +++ b/hw/ppc/spapr_drc.c > @@ -456,6 +456,7 @@ sPAPRDRConnector *spapr_dr_connector_new(Object *owner, > drc->id = id; > drc->owner = owner; > object_property_add_child(owner, "dr-connector[*]", OBJECT(drc), NULL); > + object_unref(OBJECT(drc)); > object_property_set_bool(OBJECT(drc), true, "realized", NULL); > > /* human-readable name for a DRC to encode into the DT -- David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson
pgpm2yhgJFxuE.pgp
Description: PGP signature