aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2008-07-05 07:53:38 -0400
committerIngo Molnar <mingo@elte.hu>2008-07-09 07:57:55 -0400
commit4d8cc874d7ed43eda72765e9c0e141e170fee4f3 (patch)
tree83fe98abe8f3c15b20726b598d0aef37194a83b2
parentd6cd7effcc5e0047faf15ab0a54c980f1a616a07 (diff)
x86: smpboot maxcpus - add checking for NULL early param
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>
-rw-r--r--arch/x86/kernel/smpboot.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c
index fd933b5465b6..e47bfac70c38 100644
--- a/arch/x86/kernel/smpboot.c
+++ b/arch/x86/kernel/smpboot.c
@@ -1452,7 +1452,8 @@ static int __init parse_maxcpus(char *arg)
1452{ 1452{
1453 extern unsigned int maxcpus; 1453 extern unsigned int maxcpus;
1454 1454
1455 maxcpus = simple_strtoul(arg, NULL, 0); 1455 if (arg)
1456 maxcpus = simple_strtoul(arg, NULL, 0);
1456 return 0; 1457 return 0;
1457} 1458}
1458early_param("maxcpus", parse_maxcpus); 1459early_param("maxcpus", parse_maxcpus);