]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
x86: idle process - add checking for NULL early param
authorCyrill Gorcunov <gorcunov@gmail.com>
Sat, 5 Jul 2008 11:53:36 +0000 (15:53 +0400)
committerIngo Molnar <mingo@elte.hu>
Wed, 9 Jul 2008 11:57:53 +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/process.c

index ba370dc8685bf8f9bf31e9100f78c4e800ea755e..58325a6604a4fa650952bf49323abbb82e5007e5 100644 (file)
@@ -164,6 +164,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;