]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - common/spl/spl.c
Correct malloc_limit value for pre-relocation malloc()
[karo-tx-uboot.git] / common / spl / spl.c
index ff916600ac831f0855718c18d51ce3afcc7ef08e..0823c57088a8bcaf300ebded19cb6935510dea22 100644 (file)
@@ -158,7 +158,7 @@ void board_init_r(gd_t *dummy1, ulong dummy2)
                        CONFIG_SYS_SPL_MALLOC_SIZE);
        gd->flags |= GD_FLG_FULL_MALLOC_INIT;
 #elif defined(CONFIG_SYS_MALLOC_F_LEN)
-       gd->malloc_limit = gd->malloc_base + CONFIG_SYS_MALLOC_F_LEN;
+       gd->malloc_limit = CONFIG_SYS_MALLOC_F_LEN;
        gd->malloc_ptr = 0;
 #endif
 #ifdef CONFIG_SPL_DM