diff options
author | Greg Kurz <groug@kaod.org> | 2019-03-13 15:54:01 +0100 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2019-03-19 15:20:14 +1100 |
commit | 26aa5b1eeb086a67efc859933e04137e79aeac78 (patch) | |
tree | d7c1005ebea5cce3c1121dd4057f502e48443325 /hw | |
parent | 1af82d4f287332862f340f4daed2d8ffd99ad657 (diff) | |
download | qemu-26aa5b1eeb086a67efc859933e04137e79aeac78.zip qemu-26aa5b1eeb086a67efc859933e04137e79aeac78.tar.gz qemu-26aa5b1eeb086a67efc859933e04137e79aeac78.tar.bz2 |
ppc/pnv: Use local_err variable in pnv_chip_power9_intc_create()
Detected by Coverity: CID 1399702
Signed-off-by: Greg Kurz <groug@kaod.org>
Message-Id: <155248884129.893204.2293309859485638162.stgit@bahia.lan>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/ppc/pnv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/ppc/pnv.c b/hw/ppc/pnv.c index 8be4d4c..dfb4ea5 100644 --- a/hw/ppc/pnv.c +++ b/hw/ppc/pnv.c @@ -755,7 +755,7 @@ static void pnv_chip_power9_intc_create(PnvChip *chip, PowerPCCPU *cpu, * controller object is initialized afterwards. Hopefully, it's * only used at runtime. */ - obj = xive_tctx_create(OBJECT(cpu), XIVE_ROUTER(&chip9->xive), errp); + obj = xive_tctx_create(OBJECT(cpu), XIVE_ROUTER(&chip9->xive), &local_err); if (local_err) { error_propagate(errp, local_err); return; |