summaryrefslogtreecommitdiffstats
path: root/include/skiboot.h
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2016-05-17 14:31:51 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-05-18 15:25:59 +1000
commitdd420a7f0647c96f249fe9e049b51890354f3c7a (patch)
tree54e4e4297524ce04dc8edb9e6ed59a614f848feb /include/skiboot.h
parent94c7f9a21d35c4237a8e5ee82199e69935b02e28 (diff)
downloadblackbird-skiboot-dd420a7f0647c96f249fe9e049b51890354f3c7a.tar.gz
blackbird-skiboot-dd420a7f0647c96f249fe9e049b51890354f3c7a.zip
hdata: Make hdata_to_dt more suitable for fuzzing
We make parse_hdat() return success/failure rather than assert. This allows the hdata_to_dt binary to gracefully error out rather than assert, which is useful when throwing it at a fuzzer. Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include/skiboot.h')
-rw-r--r--include/skiboot.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/skiboot.h b/include/skiboot.h
index bece6906..a878d213 100644
--- a/include/skiboot.h
+++ b/include/skiboot.h
@@ -175,7 +175,7 @@ extern void start_kernel32(uint64_t entry, void* fdt,
extern void start_kernel_secondary(uint64_t entry) __noreturn;
/* Get description of machine from HDAT and create device-tree */
-extern void parse_hdat(bool is_opal, uint32_t master_cpu);
+extern int parse_hdat(bool is_opal, uint32_t master_cpu);
/* Root of device tree. */
extern struct dt_node *dt_root;
OpenPOWER on IntegriCloud