ACPICA: Restructure includes into public/private
[deliverable/linux.git] / drivers / acpi / namespace / nsaccess.c
index 29c7c271dbb8295c0f37e3b2befe3abd7c2a9d35..7954640e69cb36d15773a8d5c161e61550da0509 100644 (file)
@@ -42,6 +42,7 @@
  */
 
 #include <acpi/acpi.h>
+#include <acpi/accommon.h>
 #include <acpi/amlcode.h>
 #include <acpi/acnamesp.h>
 #include <acpi/acdispat.h>
@@ -588,6 +589,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)) {
This page took 0.029088 seconds and 5 git commands to generate.