diff options
| author | Tero Kristo <[email protected]> | 2020-06-12 15:41:19 +0300 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2020-07-17 08:51:01 -0400 |
| commit | 19c6808d87de3a9d8889a5881efc9467d3b50826 (patch) | |
| tree | 067f672a9143f4c5985c0c236b0090980f5c98b8 | |
| parent | e6676a34c4b5b78cd20c02e396d9d5f7b7ceff46 (diff) | |
image: fdt: bail out with error if no boot time FDT image found
Currently the boot continues if the FDT image is clearly corrupted,
which just causes the loaded OS to hang. Abort boot properly if the FDT
is corrupted.
Signed-off-by: Tero Kristo <[email protected]>
| -rw-r--r-- | common/image-fdt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/image-fdt.c b/common/image-fdt.c index b63e772bd6e..7005b349666 100644 --- a/common/image-fdt.c +++ b/common/image-fdt.c @@ -426,7 +426,7 @@ int boot_get_fdt(int flag, int argc, char *const argv[], uint8_t arch, break; default: puts("ERROR: Did not find a cmdline Flattened Device Tree\n"); - goto no_fdt; + goto error; } printf(" Booting using the fdt blob at %#08lx\n", fdt_addr); |
