Skip to content
Snippets Groups Projects
Commit d67f33cf authored by Simon Goldschmidt's avatar Simon Goldschmidt Committed by Tom Rini
Browse files

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's avatarSimon Glass <sjg@chromium.org>
Signed-off-by: default avatarSimon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
parent a01ae0c2
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment