mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 00:32:04 +02:00
common: bootm: add checks to verify if ramdisk / fdtimage overlaps OS image
These cases are typically fatal and are difficult to debug for random users. Add checks for detecting overlapping images and abort if overlap is detected. Signed-off-by: Tero Kristo <t-kristo@ti.com>
This commit is contained in:
@@ -495,7 +495,7 @@ static int do_bootm_tee(int flag, int argc, char *const argv[],
|
||||
return ret;
|
||||
|
||||
/* Locate FDT etc */
|
||||
ret = bootm_find_images(flag, argc, argv);
|
||||
ret = bootm_find_images(flag, argc, argv, 0, 0);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
@@ -516,7 +516,7 @@ static int do_bootm_efi(int flag, int argc, char *const argv[],
|
||||
return 0;
|
||||
|
||||
/* Locate FDT, if provided */
|
||||
ret = bootm_find_images(flag, argc, argv);
|
||||
ret = bootm_find_images(flag, argc, argv, 0, 0);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
|
Reference in New Issue
Block a user