[U-Boot] malloc_simple: fix malloc_ptr calculation

Tom Rini trini at konsulko.com
Mon Sep 28 23:07:37 CEST 2015


On Tue, Sep 08, 2015 at 12:41:24PM +0200, Philipp Rosenberger wrote:

> 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 at linutronix.de>
> Reviewed-by: Hans de Goede <hdegoede at redhat.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150928/98dd2f33/attachment.sig>


More information about the U-Boot mailing list