summaryrefslogtreecommitdiff
path: root/common/image-fdt.c
diff options
context:
space:
mode:
authorTero Kristo <t-kristo@ti.com>2020-06-12 15:41:19 +0300
committerTom Rini <trini@konsulko.com>2020-07-17 08:51:01 -0400
commit19c6808d87de3a9d8889a5881efc9467d3b50826 (patch)
tree067f672a9143f4c5985c0c236b0090980f5c98b8 /common/image-fdt.c
parente6676a34c4b5b78cd20c02e396d9d5f7b7ceff46 (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 <t-kristo@ti.com>
Diffstat (limited to 'common/image-fdt.c')
-rw-r--r--common/image-fdt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/image-fdt.c b/common/image-fdt.c
index b63e772bd6..7005b34966 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);