Skip to content

Commit

Permalink
x86: smpboot maxcpus - 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: 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 d6cd7ef commit 4d8cc87
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/x86/kernel/smpboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit 4d8cc87

Please sign in to comment.