[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <6072715.FoXSX1UJhO@vostro.rjw.lan>
Date: Wed, 28 Nov 2012 21:31:38 +0100
From: "Rafael J. Wysocki" <rjw@...k.pl>
To: Zdenek Kabelac <zkabelac@...hat.com>
Cc: linux-acpi@...r.kernel.org,
Linus Torvalds <torvalds@...ux-foundation.org>,
Len Brown <lenb@...nel.org>,
LKML <linux-kernel@...r.kernel.org>
Subject: Re: Acpi deadlocks with 3.7.0-rc4
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 <zkabelac@...hat.com> 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);
--
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists