1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-12-26 11:09:11 +01:00
Files
u-boot-megous/common/malloc_simple.c
Philipp Rosenberger 596380db28 malloc_simple: fix malloc_ptr calculation
The gd->malloc_ptr and the gd->malloc_limit are offsets to gd->malloc_base.
But the addr variable contains the absolute address. The new_ptr must be:
addr + bytes - gd->malloc_base.

Signed-off-by: Philipp Rosenberger <ilu@linutronix.de>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
2015-09-28 10:15:48 -04:00

1.0 KiB