spapr: Add missing checks for NULL pointers and report failures
commit4c56440d6754b45c2d82969e029a3c2a72864b30
authorStefan Weil <sw@weilnetz.de>
Sat, 14 Mar 2015 15:29:09 +0000 (14 16:29 +0100)
committerAlexander Graf <agraf@suse.de>
Wed, 25 Mar 2015 21:49:46 +0000 (25 22:49 +0100)
tree22e7e5b3894236eb6f0fd9e70cfd00348351fdaa
parent0d2f830255c758240dccbeb732a2c21f4eea995c
spapr: Add missing checks for NULL pointers and report failures

This fixes potential runtime crashes and two warnings from Coverity.

The new error message does not add  a prefix "qemu:" because that is
already done in function hw_error. It also starts with an uppercase
letter because that seems to be the mostly used form.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
[agraf: fix typo]
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/ppc/spapr.c