aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorCédric Le Goater <clg@kaod.org>2017-06-05 17:44:21 +0200
committerDavid Gibson <david@gibson.dropbear.id.au>2017-06-06 09:18:46 +1000
commit7032d92ac83c13987be302b96ab1f26d4b0f404e (patch)
treea1a886c41fc60f5211cd6076f948683dc2b57ee3 /hw
parent052495178821fdc97b4125a8677c1b68eb458db9 (diff)
downloadqemu-7032d92ac83c13987be302b96ab1f26d4b0f404e.zip
qemu-7032d92ac83c13987be302b96ab1f26d4b0f404e.tar.gz
qemu-7032d92ac83c13987be302b96ab1f26d4b0f404e.tar.bz2
ppc/pnv: check the return value of fdt_setprop()
Signed-off-by: Cédric Le Goater <clg@kaod.org> [dwg: Correct typo in commit message] Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'hw')
-rw-r--r--hw/ppc/pnv.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/hw/ppc/pnv.c b/hw/ppc/pnv.c
index 231ed97..89b6801 100644
--- a/hw/ppc/pnv.c
+++ b/hw/ppc/pnv.c
@@ -378,8 +378,9 @@ static void powernv_populate_ipmi_bt(ISADevice *d, void *fdt, int lpc_off)
_FDT(node);
g_free(name);
- fdt_setprop(fdt, node, "reg", io_regs, sizeof(io_regs));
- fdt_setprop(fdt, node, "compatible", compatible, sizeof(compatible));
+ _FDT((fdt_setprop(fdt, node, "reg", io_regs, sizeof(io_regs))));
+ _FDT((fdt_setprop(fdt, node, "compatible", compatible,
+ sizeof(compatible))));
/* Mark it as reserved to avoid Linux trying to claim it */
_FDT((fdt_setprop_string(fdt, node, "status", "reserved")));