| From oliver@zipernowsky.hu Fri Aug 1 16:55:44 2008 |
| From: Cyrill Gorcunov <gorcunov@gmail.com> |
| Date: Thu, 31 Jul 2008 20:52:21 +0200 |
| Subject: x86: idle process - add checking for NULL early param |
| To: Cyrill Gorcunov <gorcunov@gmail.com>, stable@kernel.org |
| Cc: akpm@linux-foundation.org, andi@firstfloor.org, Ingo Molnar <mingo@elte.hu>, Oliver Pinter <oliver.pntr@gmail.com> |
| Message-ID: <d97f06741afb88167ba45ca72d4f10b6@zipernowsky.hu> |
| |
| From: Cyrill Gorcunov <gorcunov@gmail.com> |
| |
| [ Upstream commit ab6bc3e343fbe3be4a0f67225e849d0db6b4b7ac ] |
| |
| 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> |
| CC: Oliver Pinter <oliver.pntr@gmail.com> |
| Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> |
| |
| --- |
| arch/x86/kernel/process.c | 3 +++ |
| 1 file changed, 3 insertions(+) |
| |
| --- a/arch/x86/kernel/process.c |
| +++ b/arch/x86/kernel/process.c |
| @@ -164,6 +164,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; |