spapr-cpu-core: release ICP object when realization fails
commitc8a98293f7fe672fc3b7a3caafede701fbb3180e
authorGreg Kurz <groug@kaod.org>
Mon, 15 May 2017 11:39:55 +0000 (15 13:39 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 24 May 2017 01:39:52 +0000 (24 11:39 +1000)
tree2d58edc966e9380988ab7231555a30dca25ac1ef
parent175d2aa038c530d07a8eb5f483c6b1c4b3df43e0
spapr-cpu-core: release ICP object when realization fails

While here we introduce a single error path to avoid code duplication.

Signed-off-by: Greg Kurz <groug@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/spapr_cpu_core.c