diff options
author | Cyrill Gorcunov <gorcunov@gmail.com> | 2008-07-05 13:53:38 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-07-09 13:57:55 +0200 |
commit | 4d8cc874d7ed43eda72765e9c0e141e170fee4f3 (patch) | |
tree | 83fe98abe8f3c15b20726b598d0aef37194a83b2 /arch/x86/kernel/smpboot.c | |
parent | x86: io delay - add checking for NULL early param (diff) | |
download | linux-4d8cc874d7ed43eda72765e9c0e141e170fee4f3.tar.xz linux-4d8cc874d7ed43eda72765e9c0e141e170fee4f3.zip |
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>
Diffstat (limited to 'arch/x86/kernel/smpboot.c')
-rw-r--r-- | arch/x86/kernel/smpboot.c | 3 |
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) { 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); |