commit | 6402d9b2fe2365346b63c20c2135feec973964b8 | [log] [tgz] |
---|---|---|
author | Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com> | Mon Jan 14 22:38:15 2019 +0100 |
committer | Tom Rini <trini@konsulko.com> | Wed Jan 16 16:36:48 2019 -0500 |
tree | 26bf0439372588bf6a600387650033862ae90f34 | |
parent | 9f3b6275a8ea512e9c770d3653ce5993c6675aa9 [diff] |
lmb: fix allocation at end of address range 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. Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>