diff options
Diffstat (limited to 'common/image.c')
-rw-r--r-- | common/image.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/image.c b/common/image.c index 6f68b13fced..645bfef1690 100644 --- a/common/image.c +++ b/common/image.c @@ -688,6 +688,9 @@ phys_size_t env_get_bootm_size(void) start = gd->ram_base; size = gd->ram_size; + if (start + size > gd->ram_top) + size = gd->ram_top - start; + s = env_get("bootm_low"); if (s) tmp = (phys_size_t)simple_strtoull(s, NULL, 16); |