From: Tom Rini Date: Mon, 28 Sep 2015 17:07:37 -0400 Subject: [U-Boot] malloc_simple: fix malloc_ptr calculation In-Reply-To: <1441708884-26165-1-git-send-email-ilu@linutronix.de> References: <1441708884-26165-1-git-send-email-ilu@linutronix.de> Message-ID: <20150928210737.GQ22966@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > Reviewed-by: Hans de Goede 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: