From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1765495AbYHDVgZ (ORCPT ); Mon, 4 Aug 2008 17:36:25 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1764859AbYHDVfL (ORCPT ); Mon, 4 Aug 2008 17:35:11 -0400 Received: from ns2.suse.de ([195.135.220.15]:49882 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1764917AbYHDVfJ (ORCPT ); Mon, 4 Aug 2008 17:35:09 -0400 Date: Mon, 4 Aug 2008 14:29:44 -0700 From: Greg KH To: linux-kernel@vger.kernel.org, stable@kernel.org, Cyrill Gorcunov Cc: Justin Forbes , Zwane Mwaikambo , "Theodore Ts'o" , Randy Dunlap , Dave Jones , Chuck Wolber , Chris Wedgwood , Michael Krufky , Chuck Ebbert , Domenico Andreoli , Willy Tarreau , Rodrigo Rubira Branco , Jake Edge , Eugene Teo , torvalds@linux-foundation.org, akpm@linux-foundation.org, alan@lxorguk.ukuu.org.uk, andi@firstfloor.org, Ingo Molnar , Oliver Pinter Subject: [patch 05/25] x86: idle process - add checking for NULL early param Message-ID: <20080804212944.GE8014@suse.de> References: <20080804203506.816201392@mini.kroah.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline; filename="x86-idle-process-add-checking-for-null-early-param.patch" In-Reply-To: <20080804212725.GA7944@suse.de> User-Agent: Mutt/1.5.16 (2007-06-09) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2.6.26-stable review patch. If anyone has any objections, please let us know. ------------------ From: Cyrill Gorcunov [ 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 --- 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; --