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
..
2015-06-10 19:26:54 -06:00
2015-07-20 07:21:47 -06:00
2015-07-27 15:53:48 -07:00
2015-08-31 07:57:29 -06:00
2015-08-31 07:57:29 -06:00