]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
ACPICA: Add error check to debug object dump routine
authorBob Moore <robert.moore@intel.com>
Tue, 3 Feb 2009 06:17:29 +0000 (14:17 +0800)
committerLen Brown <len.brown@intel.com>
Thu, 26 Mar 2009 20:38:19 +0000 (16:38 -0400)
Add check for invalid handle in acpi_ns_dump_one_object.

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/acpica/nsdump.c

index 0da33c8e9ba272d99979e80fd26ccb30255cb21b..e96d37a596b8ac89569e649f31c0fd7af83c8862 100644 (file)
@@ -181,6 +181,12 @@ acpi_ns_dump_one_object(acpi_handle obj_handle,
        }
 
        this_node = acpi_ns_map_handle_to_node(obj_handle);
+       if (!this_node) {
+               ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Invalid object handle %p\n",
+                                 obj_handle));
+               return (AE_OK);
+       }
+
        type = this_node->type;
 
        /* Check if the owner matches */