]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ACPICA: Fix for predefined name loop during ACPICA initialization
authorRobert Moore <Robert.Moore@intel.com>
Wed, 31 Oct 2012 02:26:36 +0000 (02:26 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 14 Nov 2012 23:31:25 +0000 (00:31 +0100)
If a name cannot be created, simply continue on to the next name.
Do not attempt to use the name, do not abort.  With assistance
from Colin Ian King.

Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpica/nsaccess.c

index fc168e62c1c9cdfbd98bc666d0ab19dafebef8f6..d70eaf39dfdfd40cff45637ff5d09b637f3a2ad6 100644 (file)
@@ -110,11 +110,11 @@ acpi_status acpi_ns_root_initialize(void)
                status = acpi_ns_lookup(NULL, init_val->name, init_val->type,
                                        ACPI_IMODE_LOAD_PASS2,
                                        ACPI_NS_NO_UPSEARCH, NULL, &new_node);
-
-               if (ACPI_FAILURE(status) || (!new_node)) {      /* Must be on same line for code converter */
+               if (ACPI_FAILURE(status)) {
                        ACPI_EXCEPTION((AE_INFO, status,
                                        "Could not create predefined name %s",
                                        init_val->name));
+                       continue;
                }
 
                /*