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

2019-01-16 Thread Simon Glass
On Mon, 14 Jan 2019 at 14:38, 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

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

2019-01-14 Thread Simon Goldschmidt
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 --- Changes in v10: None Changes in v9: None Changes in v8: None