Commit 0931cea3 authored by Heinrich Schuchardt's avatar Heinrich Schuchardt Committed by David Gibson
Browse files

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: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
[dwg: Removed unnecessary inline, changed type from int to bool]
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
parent f8886546
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment