aboutsummaryrefslogtreecommitdiff
path: root/common
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
parente6676a34c4b5b78cd20c02e396d9d5f7b7ceff46 (diff)
downloadu-boot-19c6808d87de3a9d8889a5881efc9467d3b50826.zip
u-boot-19c6808d87de3a9d8889a5881efc9467d3b50826.tar.gz
u-boot-19c6808d87de3a9d8889a5881efc9467d3b50826.tar.bz2
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')
-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 b63e772..7005b34 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);