projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6cd7ef
)
x86: smpboot maxcpus - add checking for NULL early param
author
Cyrill Gorcunov
<gorcunov@gmail.com>
Sat, 5 Jul 2008 11:53:38 +0000
(15:53 +0400)
committer
Ingo Molnar
<mingo@elte.hu>
Wed, 9 Jul 2008 11:57:55 +0000
(13:57 +0200)
Signed-off-by: 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/smpboot.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/kernel/smpboot.c
b/arch/x86/kernel/smpboot.c
index fd933b5465b68f59d10105c3131903a0b80b2eea..e47bfac70c3807a7d5587329c83d39de21c6cb1f 100644
(file)
--- a/
arch/x86/kernel/smpboot.c
+++ b/
arch/x86/kernel/smpboot.c
@@
-1452,7
+1452,8
@@
static int __init parse_maxcpus(char *arg)
{
extern unsigned int maxcpus;
- maxcpus = simple_strtoul(arg, NULL, 0);
+ if (arg)
+ maxcpus = simple_strtoul(arg, NULL, 0);
return 0;
}
early_param("maxcpus", parse_maxcpus);