From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Morton Subject: Re: [patch 1/5] x86: ACPI - add checking for NULL early param Date: Tue, 22 Jul 2008 02:53:32 -0700 Message-ID: <20080722025332.afddd49b.akpm@linux-foundation.org> References: <20080705115334.892720771@gmail.com> <486f61a9.2135440a.0d16.ffffbd7f@mx.google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from smtp1.linux-foundation.org ([140.211.169.13]:56841 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751778AbYGVJyB (ORCPT ); Tue, 22 Jul 2008 05:54:01 -0400 In-Reply-To: <486f61a9.2135440a.0d16.ffffbd7f@mx.google.com> Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: Cyrill Gorcunov Cc: mingo@elte.hu, hpa@zytor.com, tglx@linutronix.de, andi@firstfloor.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.orgAndi Kleen On Sat, 05 Jul 2008 15:53:35 +0400 Cyrill Gorcunov wrote: > Signed-off-by: Cyrill Gorcunov > --- > > Index: linux-2.6.git/drivers/acpi/tables.c > ==================================================================== > --- linux-2.6.git.orig/drivers/acpi/tables.c 2008-01-21 23:14:47.000000000 +0300 > +++ linux-2.6.git/drivers/acpi/tables.c 2008-07-05 12:24:16.000000000 +0400 > @@ -300,6 +300,8 @@ int __init acpi_table_init(void) > > static int __init acpi_parse_apic_instance(char *str) > { > + if (!str) > + return -EINVAL; > > acpi_apic_instance = simple_strtoul(str, NULL, 0); > Could you please explain this patch?