[S390] Fix memory detection.
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Mon, 5 Nov 2007 10:10:11 +0000 (11:10 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 5 Nov 2007 10:10:17 +0000 (11:10 +0100)
commit0b8da654b6c13b40b0e0efd916ee57ed13f9fa1f
tree31a302d2f92bc451dfa4fea433f8683495b13f4b
parent0d2be08893605be00de0f95ee7e4b8917ea1ebc3
[S390] Fix memory detection.

Yet another patch in the countless series of memory detection fixes:
if the last area of the reported storage size is a hole the detection
loop will loop forever.
Just break chunk detection loop if its end is going to be larger than
reported storage size.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/early.c