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
..
2013-04-01 16:33:52 -04:00
2014-06-11 16:25:47 -04:00
2015-06-10 19:26:54 -06:00
2014-02-04 16:32:20 +01:00
2015-07-20 07:21:47 -06:00
2015-01-30 09:19:17 -05:00
2014-11-19 08:48:41 +01:00
2015-01-30 09:19:16 -05:00
2014-10-26 14:03:08 -04:00
2014-12-29 16:31:24 -05:00
2014-06-20 11:54:29 -06:00
2014-06-05 14:38:38 -04:00
2011-04-08 00:44:27 -04:00
2015-01-29 17:09:57 -07:00
2015-04-16 19:27:43 -06:00
2015-05-14 19:58:34 -06:00
2015-07-27 15:53:48 -07:00
2014-05-12 15:19:46 -04:00
2015-08-31 07:57:29 -06:00
2013-04-01 16:33:52 -04:00
2015-05-21 09:13:19 -04:00
2014-03-21 16:43:59 -04:00
2014-04-17 17:44:36 -04:00
2014-03-21 16:43:59 -04:00
2014-03-21 16:43:59 -04:00
2015-01-05 12:08:51 -05:00
2015-08-31 07:57:29 -06:00
2014-09-16 12:23:56 -04:00
2011-10-22 01:13:35 +02:00
2014-11-04 06:04:00 +01:00