projects
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6676a3
)
image: fdt: bail out with error if no boot time FDT image found
author
Tero Kristo
<t-kristo@ti.com>
Fri, 12 Jun 2020 12:41:19 +0000
(15:41 +0300)
committer
Tom Rini
<trini@konsulko.com>
Fri, 17 Jul 2020 12:51:01 +0000
(08:51 -0400)
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>
common/image-fdt.c
patch
|
blob
|
history
diff --git
a/common/image-fdt.c
b/common/image-fdt.c
index
b63e772
..
7005b34
100644
(file)
--- 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);