]> Pileus Git - ~andy/linux/commitdiff
Merge branch 'linus' into x86/cleanups
authorIngo Molnar <mingo@elte.hu>
Fri, 18 Jul 2008 11:53:16 +0000 (13:53 +0200)
committerIngo Molnar <mingo@elte.hu>
Fri, 18 Jul 2008 11:53:16 +0000 (13:53 +0200)
arch/x86/kernel/io_delay.c
arch/x86/kernel/process.c
arch/x86/kernel/smpboot.c

index 5921e5f0a64027745fa2ac3e5f695ceaca9ddeae..1c3a66a67f83d3bb6d7eec2d5e4cfb1560660720 100644 (file)
@@ -103,6 +103,9 @@ void __init io_delay_init(void)
 
 static int __init io_delay_param(char *s)
 {
+       if (!s)
+               return -EINVAL;
+
        if (!strcmp(s, "0x80"))
                io_delay_type = CONFIG_IO_DELAY_TYPE_0X80;
        else if (!strcmp(s, "0xed"))
index 4d629c62f4f8fbb993a49c0d5f12d7e88bbd94b5..158bd6a16f6ab79aee5d918f93698aed2805a937 100644 (file)
@@ -326,6 +326,9 @@ void __cpuinit select_idle_routine(const struct cpuinfo_x86 *c)
 
 static int __init idle_setup(char *str)
 {
+       if (!str)
+               return -EINVAL;
+
        if (!strcmp(str, "poll")) {
                printk("using polling idle threads.\n");
                pm_idle = poll_idle;
index 687376ab07e82ece4ab1eeb609d738d76245d226..a9ca7dadc85215f988fc68a75722833dbeb05f1d 100644 (file)
@@ -1390,7 +1390,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);