Signed-off-by: Cyrill Gorcunov --- Index: linux-2.6.git/arch/x86/kernel/process.c ==================================================================== --- linux-2.6.git.orig/arch/x86/kernel/process.c 2008-06-28 21:15:44.000000000 +0400 +++ linux-2.6.git/arch/x86/kernel/process.c 2008-07-05 12:34:02.000000000 +0400 @@ -325,6 +325,9 @@ void __cpuinit select_idle_routine(const 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; --