[patch 4/5] x86: smpboot maxcpus - add checking for NULL early param

From: Cyrill Gorcunov
Date: Sat Jul 05 2008 - 07:58:50 EST


Signed-off-by: Cyrill Gorcunov <gorcunov@xxxxxxxxx>
---

Index: linux-2.6.git/arch/x86/kernel/smpboot.c
====================================================================
--- linux-2.6.git.orig/arch/x86/kernel/smpboot.c 2008-06-28 21:15:44.000000000 +0400
+++ linux-2.6.git/arch/x86/kernel/smpboot.c 2008-07-05 12:53:28.000000000 +0400
@@ -1383,7 +1383,8 @@ static int __init parse_maxcpus(char *ar
{
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);

--
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/