projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c22d4c1
)
x86: e820 memmap - add checking for NULL early param
author
Cyrill Gorcunov
<gorcunov@gmail.com>
Sat, 5 Jul 2008 11:53:39 +0000
(15:53 +0400)
committer
Ingo 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
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/kernel/e820.c
b/arch/x86/kernel/e820.c
index 292ebc7fe4d0ac0261f1c0fc2906cc045860867b..66fd5bd78318b36c247593d45205001303d2a1bf 100644
(file)
--- a/
arch/x86/kernel/e820.c
+++ b/
arch/x86/kernel/e820.c
@@
-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
/*