]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
x86: smpboot maxcpus - add checking for NULL early param
authorCyrill Gorcunov <gorcunov@gmail.com>
Sat, 5 Jul 2008 11:53:38 +0000 (15:53 +0400)
committerIngo 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

index fd933b5465b68f59d10105c3131903a0b80b2eea..e47bfac70c3807a7d5587329c83d39de21c6cb1f 100644 (file)
@@ -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);