Merge branch 'linus' into x86/cleanups
[platform/adaptation/renesas_rcar/renesas_kernel.git] / arch / x86 / kernel / process.c
index 4d629c6..158bd6a 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;