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

lmb: Fix reserved region handling in lmb_enforce_memory_limit().



The idea of the implementation of this fix is from Michael Ellerman.

This function has two loops, but they each interpret the memory_limit
value differently.  The first loop interprets it as a "size limit"
whereas the second loop interprets it as an "address limit".

Before the second loop runs, reset memory_limit to lmb_end_of_DRAM()
so that it all works out.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Acked-by: default avatarMichael Ellerman <michael@ellerman.id.au>
parent f2b60794
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment