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>
This commit is contained in:
Cyrill Gorcunov 2008-07-05 15:53:39 +04:00 committed by Ingo Molnar
parent c22d4c1885
commit a737abd11a

View 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
/*