2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-05 20:24:09 +08:00

[S390] memory detection: stop at first memory hole.

If both sclp and diag memory detection don't work stop at the first
memory hole. Otherwise the code might loop forever...

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
This commit is contained in:
Heiko Carstens 2007-04-27 16:01:04 +02:00 committed by Martin Schwidefsky
parent de46c33745
commit 29c380f5f0

View File

@ -253,11 +253,10 @@ static noinline __init void find_memory_chunks(unsigned long memsize)
break; break;
#endif #endif
/* /*
* Finish memory detection at the first hole, unless * Finish memory detection at the first hole
* - we reached the hsa -> skip it. * if storage size is unknown.
* - we know there must be more.
*/ */
if (cc == -1UL && !memsize && old_addr != ADDR2G) if (cc == -1UL && !memsize)
break; break;
if (memsize && addr >= memsize) if (memsize && addr >= memsize)
break; break;