[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <46D7A196.7070309@suse.de>
Date: Fri, 31 Aug 2007 09:05:26 +0400
From: Alexey Starikovskiy <astarikovskiy@...e.de>
To: Linus Torvalds <torvalds@...ux-foundation.org>
CC: Daniel Ritz <daniel.ritz-ml@...ssonline.ch>,
Luca Tettamanti <kronos.it@...il.com>,
linux-kernel@...r.kernel.org, Len Brown <len.brown@...el.com>,
Andrew Morton <akpm@...ux-foundation.org>
Subject: [PATCH] ACPI: EC: Check if boot_ec was really found in DSDT
From: Alexey Starikovskiy <astarikovskiy@...e.de>
acpi_get_devices() returns success if it did not find any device.
We have to check for this case.
Signed-off-by: Alexey Starikovskiy <astarikovskiy@...e.de>
---
drivers/acpi/ec.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c
index 43749c8..3f7935a 100644
--- a/drivers/acpi/ec.c
+++ b/drivers/acpi/ec.c
@@ -886,7 +886,8 @@ int __init acpi_ec_ecdt_probe(void)
printk(KERN_DEBUG PREFIX "Look up EC in DSDT\n");
status = acpi_get_devices(ec_device_ids[0].id, ec_parse_device,
boot_ec, NULL);
- if (ACPI_FAILURE(status))
+ /* Check that acpi_get_devices actually find something */
+ if (ACPI_FAILURE(status) || !boot_ec->handle)
goto error;
}
-
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