projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0524951
)
ppc/pnv: check the return value of fdt_setprop()
author
Cédric Le Goater
<clg@kaod.org>
Mon, 5 Jun 2017 15:44:21 +0000
(17:44 +0200)
committer
David Gibson
<david@gibson.dropbear.id.au>
Mon, 5 Jun 2017 23:18:46 +0000
(09:18 +1000)
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>
hw/ppc/pnv.c
patch
|
blob
|
history
diff --git
a/hw/ppc/pnv.c
b/hw/ppc/pnv.c
index 231ed9735b6525a732bc93ff9e3c971b461382b5..89b6801f67b54ba00cfe7eaa848423fede3cb240 100644
(file)
--- 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")));