Re: [U-Boot] [PATCH 2/7] malloc_simple: Fix malloc_ptr calculation

2015-09-21 Thread Simon Glass
On 13 September 2015 at 09:42, Hans de Goede wrote: > From: Philipp Rosenberger > > 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

[U-Boot] [PATCH 2/7] malloc_simple: Fix malloc_ptr calculation

2015-09-13 Thread Hans de Goede
From: Philipp Rosenberger 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 Reviewed-by: Hans de Goede Signed-off-by: Hans de G