commit | 0931cea3ba20d41013284c20b5a204dca002c058 | [log] [tgz] |
---|---|---|
author | Heinrich Schuchardt <[email protected]> | Thu Dec 22 00:59:06 2016 +0100 |
committer | David Gibson <[email protected]> | Tue Dec 27 09:44:17 2016 +1100 |
tree | 42a35c51af713588abcf81c9cb0f60b15a697f10 | |
parent | f88865469b65455bdc4ebe7ad8601fafea9b8ef3 [diff] |
dtc: fdtdump: check fdt if not in scanning mode Running fdtdump without scan mode for an invalid file often results in a segmentation fault because the fdt header is not checked. With the patch the header is checked both in scanning as well as in non-scanning mode. Signed-off-by: Heinrich Schuchardt <[email protected]> Signed-off-by: David Gibson <[email protected]> [dwg: Removed unnecessary inline, changed type from int to bool] Reviewed-by: Simon Glass <[email protected]>