]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
ACPICA: Fix to allow aliases within ASL namepaths
authorBob Moore <robert.moore@intel.com>
Thu, 13 Nov 2008 02:51:49 +0000 (10:51 +0800)
committerLen Brown <len.brown@intel.com>
Tue, 30 Dec 2008 03:38:38 +0000 (22:38 -0500)
Fixes a problem where the use of an alias within a namepath
would result in a not found error or cause the compiler to fault.
Also now allows forward references from the Alias operator itself.
ACPICA BZ 738.

http://www.acpica.org/bugzilla/show_bug.cgi?id=738

Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/namespace/nsaccess.c

index 29c7c271dbb8295c0f37e3b2befe3abd7c2a9d35..35b0e46bd095fe0947d40bb2383e3c7f387bd7f3 100644 (file)
@@ -588,6 +588,10 @@ acpi_ns_lookup(union acpi_generic_state *scope_info,
                         * segments).
                         */
                        if (this_node->type == ACPI_TYPE_LOCAL_ALIAS) {
+                               if (!this_node->object) {
+                                       return_ACPI_STATUS(AE_NOT_EXIST);
+                               }
+
                                if (acpi_ns_opens_scope
                                    (((struct acpi_namespace_node *)this_node->
                                      object)->type)) {