ppc/pnv: fix pnv_core_realize() error handling
commit56f68439213f4fc002c602cee6f4e6863609cb88
authorCédric Le Goater <clg@kaod.org>
Tue, 26 Jun 2018 14:22:14 +0000 (26 16:22 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Mon, 2 Jul 2018 23:56:51 +0000 (3 09:56 +1000)
treed64346a9fe6bc090730b50846bd2b215e5af5f2c
parentabe82ebb2005eef846fd62652b0107d268c8e06f
ppc/pnv: fix pnv_core_realize() error handling

commit d35aefa9ae15 ("ppc/pnv: introduce a new intc_create() operation
to the chip model") changed the object link in the pnv_core_realize()
routine but a return was forgotten in case of error, which can lead to
more problems afterwards (segv)

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Greg Kurz <groug@kaod.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/pnv_core.c