From patchwork Fri Jan 29 16:48:51 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Renninger X-Patchwork-Id: 75758 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o0TGmsFE010520 for ; Fri, 29 Jan 2010 16:48:54 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752300Ab0A2Qsx (ORCPT ); Fri, 29 Jan 2010 11:48:53 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752279Ab0A2Qsx (ORCPT ); Fri, 29 Jan 2010 11:48:53 -0500 Received: from cantor2.suse.de ([195.135.220.15]:34230 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751479Ab0A2Qsw (ORCPT ); Fri, 29 Jan 2010 11:48:52 -0500 Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.221.2]) by mx2.suse.de (Postfix) with ESMTP id 849BB86A2E; Fri, 29 Jan 2010 17:48:51 +0100 (CET) From: Thomas Renninger Organization: SUSE Products GmbH To: lenb@kernel.org Subject: [PATCH 1/2] ACPI: Add NULL pointer check in acpi_bus_start Date: Fri, 29 Jan 2010 17:48:51 +0100 User-Agent: KMail/1.12.2 (Linux/2.6.32.1-0.0.14.f17927a-desktop; KDE/4.3.1; x86_64; ; ) Cc: linux-acpi@vger.kernel.org, kristen.c.accardi@intel.com MIME-Version: 1.0 Message-Id: <201001291748.51320.trenn@suse.de> Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Fri, 29 Jan 2010 16:48:54 +0000 (UTC) Index: linux-2.6.32-SLE11-SP1/drivers/acpi/scan.c =================================================================== --- linux-2.6.32-SLE11-SP1.orig/drivers/acpi/scan.c +++ linux-2.6.32-SLE11-SP1/drivers/acpi/scan.c @@ -1382,6 +1382,9 @@ int acpi_bus_start(struct acpi_device *d { struct acpi_bus_ops ops; + if (!device) + return -EINVAL; + memset(&ops, 0, sizeof(ops)); ops.acpi_op_start = 1;