]> err.no Git - linux-2.6/commitdiff
x86: e820 memmap - add checking for NULL early param
authorCyrill Gorcunov <gorcunov@gmail.com>
Sat, 5 Jul 2008 11:53:39 +0000 (15:53 +0400)
committerIngo Molnar <mingo@elte.hu>
Wed, 9 Jul 2008 11:58:07 +0000 (13:58 +0200)
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Cc: Cyrill Gorcunov <gorcunov@gmail.com>
Cc: akpm@linux-foundation.org
Cc: andi@firstfloor.org
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/e820.c

index 292ebc7fe4d0ac0261f1c0fc2906cc045860867b..66fd5bd78318b36c247593d45205001303d2a1bf 100644 (file)
@@ -1198,6 +1198,9 @@ static int __init parse_memmap_opt(char *p)
        char *oldp;
        u64 start_at, mem_size;
 
+       if (!p)
+               return -EINVAL;
+
        if (!strcmp(p, "exactmap")) {
 #ifdef CONFIG_CRASH_DUMP
                /*