diff options
author | Tero Kristo <t-kristo@ti.com> | 2020-06-12 15:41:20 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-07-17 08:51:01 -0400 |
commit | fbde7589ce3049318a0e9495db72472af03704af (patch) | |
tree | 21643da4348e8bc037e1cefe973400d8e3733c63 /common/bootm_os.c | |
parent | 19c6808d87de3a9d8889a5881efc9467d3b50826 (diff) |
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>
Diffstat (limited to 'common/bootm_os.c')
-rw-r--r-- | common/bootm_os.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/bootm_os.c b/common/bootm_os.c index 55296483f7..a3c360e80a 100644 --- a/common/bootm_os.c +++ b/common/bootm_os.c @@ -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; |