From patchwork Wed Nov 28 20:31:38 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rafael Wysocki X-Patchwork-Id: 1818321 Return-Path: X-Original-To: patchwork-linux-acpi@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 7714EDF230 for ; Wed, 28 Nov 2012 20:26:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755690Ab2K1U0y (ORCPT ); Wed, 28 Nov 2012 15:26:54 -0500 Received: from hydra.sisk.pl ([212.160.235.94]:35435 "EHLO hydra.sisk.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752896Ab2K1U0x (ORCPT ); Wed, 28 Nov 2012 15:26:53 -0500 Received: from vostro.rjw.lan (afdf208.neoplus.adsl.tpnet.pl [95.49.83.208]) by hydra.sisk.pl (Postfix) with ESMTPSA id B69CDE3E0F; Wed, 28 Nov 2012 21:28:43 +0100 (CET) From: "Rafael J. Wysocki" To: Zdenek Kabelac Cc: linux-acpi@vger.kernel.org, Linus Torvalds , Len Brown , LKML Subject: Re: Acpi deadlocks with 3.7.0-rc4 Date: Wed, 28 Nov 2012 21:31:38 +0100 Message-ID: <6072715.FoXSX1UJhO@vostro.rjw.lan> User-Agent: KMail/4.9.3 (Linux/3.7.0-rc7; KDE/4.9.3; x86_64; ; ) In-Reply-To: <50B64996.1010709@redhat.com> References: <50A513A8.9010404@redhat.com> <50B64996.1010709@redhat.com> MIME-Version: 1.0 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org On Wednesday, November 28, 2012 06:27:50 PM Zdenek Kabelac wrote: > Dne 28.11.2012 18:02, Linus Torvalds napsal(a): > > On Wed, Nov 28, 2012 at 8:21 AM, Zdenek Kabelac wrote: > >> > >> I've opened https://bugzilla.kernel.org/show_bug.cgi?id=51071 > >> and attached picture there which is all I have. I wonder if you can try to apply the patch below and see if that makes any difference? Rafael --- drivers/pnp/pnpacpi/rsparser.c | 8 ++++++++ 1 file changed, 8 insertions(+) Index: linux/drivers/pnp/pnpacpi/rsparser.c =================================================================== --- linux.orig/drivers/pnp/pnpacpi/rsparser.c +++ linux/drivers/pnp/pnpacpi/rsparser.c @@ -610,6 +610,14 @@ int pnpacpi_build_resource_template(stru struct acpi_resource *resource; int res_cnt = 0; acpi_status status; + int ret; + + /* Sanity check. */ + ret = acpi_bus_get_device(handle, &acpi_dev); + if (ret) { + dev_err(&dev->dev, "ACPI node is invalid in %s\n", __func__); + return ret; + } status = acpi_walk_resources(handle, METHOD_NAME__CRS, pnpacpi_count_resources, &res_cnt);