From: Cyrill Gorcunov Date: Thu, 31 Jul 2008 18:52:21 +0000 (+0200) Subject: x86: idle process - add checking for NULL early param X-Git-Tag: v2.6.26.2~22 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7cdece1700d9ac159742ee6e4e89a52389818297;p=platform%2Fkernel%2Flinux-stable.git x86: idle process - add checking for NULL early param [ Upstream commit ab6bc3e343fbe3be4a0f67225e849d0db6b4b7ac ] Signed-off-by: Cyrill Gorcunov Cc: akpm@linux-foundation.org Cc: andi@firstfloor.org Signed-off-by: Ingo Molnar CC: Oliver Pinter Signed-off-by: Greg Kroah-Hartman --- diff --git a/arch/x86/kernel/process.c b/arch/x86/kernel/process.c index ba370dc8685b..58325a6604a4 100644 --- a/arch/x86/kernel/process.c +++ b/arch/x86/kernel/process.c @@ -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;