Skip to content

Commit

Permalink
x86: e820 memmap - add checking for NULL early param
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Cyrill Gorcunov authored and Ingo Molnar committed Jul 9, 2008
1 parent c22d4c1 commit a737abd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/x86/kernel/e820.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
/*
Expand Down

0 comments on commit a737abd

Please sign in to comment.