Commit:     a2cb07376e397e7e788551f14acd972e22b09efd
Parent:     70cf5035dedaeddf8f6ae5c0a74ea65dcd7356ab
Author:     Heiko Carstens <[EMAIL PROTECTED]>
AuthorDate: Tue Nov 20 11:13:39 2007 +0100
Committer:  Martin Schwidefsky <[EMAIL PROTECTED]>
CommitDate: Tue Nov 20 11:13:48 2007 +0100

    [S390] Fix memory detection.
    Before we're getting short on memory detection fixes here is the next
    one: if neither sclp nor diag260 report the storage size the detection
    loop will return immediately without detecting anything. Fix this by
    breaking the detection loop only if the memory end is known.
    Signed-off-by: Heiko Carstens <[EMAIL PROTECTED]>
    Signed-off-by: Martin Schwidefsky <[EMAIL PROTECTED]>
 arch/s390/kernel/early.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/s390/kernel/early.c b/arch/s390/kernel/early.c
index 8bf4ae1..1b3af7d 100644
--- a/arch/s390/kernel/early.c
+++ b/arch/s390/kernel/early.c
@@ -200,7 +200,7 @@ static noinline __init void find_memory_chunks(unsigned 
long memsize)
                cc = __tprot(addr);
                while (cc == old_cc) {
                        addr += CHUNK_INCR;
-                       if (addr >= memsize)
+                       if (memsize && addr >= memsize)
 #ifndef CONFIG_64BIT
                        if (addr == ADDR2G)
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to