aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2008-07-05 07:53:36 -0400
committerIngo Molnar <mingo@elte.hu>2008-07-09 07:57:53 -0400
commitab6bc3e343fbe3be4a0f67225e849d0db6b4b7ac (patch)
treee68fd4050eeb8e004152c71c07c6cd6c18a11a91 /arch/x86/kernel
parent84e65b0a84a2c856bef36f13d122047678408b0a (diff)
x86: idle process - add checking for NULL early param
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>
Diffstat (limited to 'arch/x86/kernel')
-rw-r--r--arch/x86/kernel/process.c3
1 files changed, 3 insertions, 0 deletions
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)
164 164
165static int __init idle_setup(char *str) 165static int __init idle_setup(char *str)
166{ 166{
167 if (!str)
168 return -EINVAL;
169
167 if (!strcmp(str, "poll")) { 170 if (!strcmp(str, "poll")) {
168 printk("using polling idle threads.\n"); 171 printk("using polling idle threads.\n");
169 pm_idle = poll_idle; 172 pm_idle = poll_idle;