[patch 5/5] x86: e820 memmap - add checking for NULL early param

From: Cyrill Gorcunov
Date: Sat Jul 05 2008 - 07:59:09 EST


Signed-off-by: Cyrill Gorcunov <gorcunov@xxxxxxxxx>
---

Index: linux-2.6.git/arch/x86/kernel/e820.c
====================================================================
--- linux-2.6.git.orig/arch/x86/kernel/e820.c 2008-06-28 21:15:44.000000000 +0400
+++ linux-2.6.git/arch/x86/kernel/e820.c 2008-07-05 12:55:55.000000000 +0400
@@ -1131,6 +1131,9 @@ static int __init parse_memmap_opt(char
char *oldp;
u64 start_at, mem_size;

+ if (!p)
+ return -EINVAL;
+
if (!strcmp(p, "exactmap")) {
#ifdef CONFIG_CRASH_DUMP
/*

--
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/