From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Thu, 17 Jan 2019 17:44:16 -0500 Subject: [U-Boot] [U-Boot, v10, 02/10] lmb: fix allocation at end of address range In-Reply-To: <20190114213823.32486-3-simon.k.r.goldschmidt@gmail.com> References: <20190114213823.32486-3-simon.k.r.goldschmidt@gmail.com> Message-ID: <20190117224416.GZ27429@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 Mon, Jan 14, 2019 at 10:38:15PM +0100, Simon Goldschmidt wrote: > The lmb code fails if base + size of RAM overflows to zero. > > Fix this by calculating end as 'base + size - 1' instead of 'base + size' > where appropriate. > > Added tests to assert this is fixed. > > Signed-off-by: Simon Goldschmidt Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: