summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Moore <robert.moore@intel.com>2009-02-03 14:17:29 +0800
committerLen Brown <len.brown@intel.com>2009-03-26 16:38:19 -0400
commit4bbfb85da27c27e9cc9a7fef4bd75df6361152ff (patch)
tree62512adb0326070a14f2ee61c3478ea37b6d198a
parent8e0ee43bc2c3e19db56a4adaa9a9b04ce885cd84 (diff)
ACPICA: Add error check to debug object dump routine
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>
-rw-r--r--drivers/acpi/acpica/nsdump.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/acpi/acpica/nsdump.c b/drivers/acpi/acpica/nsdump.c
index 0da33c8e9ba2..e96d37a596b8 100644
--- a/drivers/acpi/acpica/nsdump.c
+++ b/drivers/acpi/acpica/nsdump.c
@@ -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 */