aboutsummaryrefslogtreecommitdiff
path: root/libfdt
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2015-06-12 10:30:10 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-06-12 10:30:10 +1000
commit77b9eb608ee30a37306080585581410add3eae29 (patch)
tree2918f38dec5847b3553c612c8710c3cd455e4575 /libfdt
parent869c631c3e893a746a157930e11e634041b650e3 (diff)
downloadskiboot-77b9eb608ee30a37306080585581410add3eae29.zip
skiboot-77b9eb608ee30a37306080585581410add3eae29.tar.gz
skiboot-77b9eb608ee30a37306080585581410add3eae29.tar.bz2
Fix incorrect size argument resulting from incorrect fix of unbounded stack usage
Luckily, thanks to boot coverage report, we never called this function: http://open-power.github.io/skiboot/boot-coverage-report/libfdt/fdt_sw.c.gcov.html Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'libfdt')
-rw-r--r--libfdt/fdt_sw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libfdt/fdt_sw.c b/libfdt/fdt_sw.c
index 75d19fe..1b14800 100644
--- a/libfdt/fdt_sw.c
+++ b/libfdt/fdt_sw.c
@@ -224,7 +224,7 @@ int fdt_property_cells_v(void *fdt, unsigned const char *name, int count,
for (i = 0; i < count; i++)
buffer[i] = cpu_to_fdt32(va_arg(args, uint32_t));
- return fdt_property(fdt, name, buffer, sizeof(buffer));
+ return fdt_property(fdt, name, buffer, sizeof(uint32_t)*count);
}
int fdt_property_cells(void *fdt, unsigned const char *name, int count, ...)