Skip to content
Snippets Groups Projects
Commit 596380db authored by Philipp Rosenberger's avatar Philipp Rosenberger Committed by Tom Rini
Browse files

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: default avatarPhilipp Rosenberger <ilu@linutronix.de>
Reviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
parent d9da26ec
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment