Commit:     2d8348b429b4ae5cc47449c787881221fe43af4b
Parent:     e70da5634835ecd8abb68d14cfc27384d01dd201
Author:     Alexey Starikovskiy <[EMAIL PROTECTED]>
AuthorDate: Fri Aug 31 09:05:26 2007 +0400
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Thu Aug 30 22:20:13 2007 -0700

    ACPI: EC: Check if boot_ec was really found in DSDT
    acpi_get_devices() returns success if it did not find any device.
    We have to check for this case.
    Signed-off-by: Alexey Starikovskiy <[EMAIL PROTECTED]>
    Tested-by: Daniel Ritz <[EMAIL PROTECTED]>
    Tested-by: Luca <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
 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 git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to