Skip to content
Commit eea89e13 authored by David S. Miller's avatar David S. Miller
Browse files

[LMB]: Fix bug in __lmb_alloc_base().



We need to check lmb_add_region() for errors, it can run out
of regions etc.

Also, the size needs to be padded to the given alignment
or else the lmb.reserved regions don't get expanded and
instead we get tons of holes and eventually run out of
regions prematurely.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d9b2b2a2
Loading
Loading
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