[LMB]: Fix bug in __lmb_alloc_base().
authorDavid S. Miller <davem@davemloft.net>
Thu, 14 Feb 2008 00:57:09 +0000 (16:57 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Feb 2008 00:57:09 +0000 (16:57 -0800)
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: David S. Miller <davem@davemloft.net>
lib/lmb.c

diff --cc lib/lmb.c
Simple merge