projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
84e65b0
)
x86: idle process - add checking for NULL early param
author
Cyrill Gorcunov
<gorcunov@gmail.com>
Sat, 5 Jul 2008 11:53:36 +0000
(15:53 +0400)
committer
Ingo Molnar
<mingo@elte.hu>
Wed, 9 Jul 2008 11:57:53 +0000
(13:57 +0200)
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>
arch/x86/kernel/process.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/kernel/process.c
b/arch/x86/kernel/process.c
index ba370dc8685bf8f9bf31e9100f78c4e800ea755e..58325a6604a4fa650952bf49323abbb82e5007e5 100644
(file)
--- 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;