aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/e820.c
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2008-07-05 07:53:39 -0400
committerIngo Molnar <mingo@elte.hu>2008-07-09 07:58:07 -0400
commita737abd11ac4eb9f4226fa8c9f1d9b5be12a96c1 (patch)
tree79a2e5264d9d6990adf8d7ced944cca112df96d6 /arch/x86/kernel/e820.c
parentc22d4c1885130db9c07f6441ab461208a1ba16b2 (diff)
x86: e820 memmap - add checking for NULL early param
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>
Diffstat (limited to 'arch/x86/kernel/e820.c')
-rw-r--r--arch/x86/kernel/e820.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/kernel/e820.c b/arch/x86/kernel/e820.c
index 292ebc7fe4d0..66fd5bd78318 100644
--- a/arch/x86/kernel/e820.c
+++ b/arch/x86/kernel/e820.c
@@ -1198,6 +1198,9 @@ static int __init parse_memmap_opt(char *p)
1198 char *oldp; 1198 char *oldp;
1199 u64 start_at, mem_size; 1199 u64 start_at, mem_size;
1200 1200
1201 if (!p)
1202 return -EINVAL;
1203
1201 if (!strcmp(p, "exactmap")) { 1204 if (!strcmp(p, "exactmap")) {
1202#ifdef CONFIG_CRASH_DUMP 1205#ifdef CONFIG_CRASH_DUMP
1203 /* 1206 /*