[U-Boot] [U-Boot, v10, 02/10] lmb: fix allocation at end of address range

Tom Rini trini at konsulko.com
Thu Jan 17 22:44:16 UTC 2019


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 <simon.k.r.goldschmidt at gmail.com>

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: <http://lists.denx.de/pipermail/u-boot/attachments/20190117/44c1cb6c/attachment.sig>


More information about the U-Boot mailing list