diff options
author | Cyrill Gorcunov <gorcunov@gmail.com> | 2008-07-05 15:53:36 +0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-07-09 13:57:53 +0200 |
commit | ab6bc3e343fbe3be4a0f67225e849d0db6b4b7ac (patch) | |
tree | e68fd4050eeb8e004152c71c07c6cd6c18a11a91 /arch | |
parent | 84e65b0a84a2c856bef36f13d122047678408b0a (diff) | |
download | blackbird-op-linux-ab6bc3e343fbe3be4a0f67225e849d0db6b4b7ac.tar.gz blackbird-op-linux-ab6bc3e343fbe3be4a0f67225e849d0db6b4b7ac.zip |
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')
-rw-r--r-- | arch/x86/kernel/process.c | 3 |
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) 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; |