]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
image: fdt: bail out with error if no boot time FDT image found
authorTero Kristo <t-kristo@ti.com>
Fri, 12 Jun 2020 12:41:19 +0000 (15:41 +0300)
committerTom 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

index b63e772bd6ee4f7af8f9d614046f861194b11e97..7005b349666f634cc0e47a121f6b8d059b6ce034 100644 (file)
@@ -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);