spapr_drc: pass object ownership to parent/owner
commitf3f41030346832af62737d69d15fd8d6dab9ba79
authorMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 25 Jul 2017 17:59:56 +0000 (25 19:59 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 7 Sep 2017 23:30:54 +0000 (8 09:30 +1000)
treecf2b49c732572d2eedf08a6e8b7ba2cde32f8acb
parent379ae096f7ee7c8ae15886eeb4361008ac6ba1c4
spapr_drc: pass object ownership to parent/owner

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 <mdroth@linux.vnet.ibm.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Greg Kurz <groug@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/spapr_drc.c