projects
/
platform
/
kernel
/
linux-amlogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e0ee43
)
ACPICA: Add error check to debug object dump routine
author
Bob Moore
<robert.moore@intel.com>
Tue, 3 Feb 2009 06:17:29 +0000
(14:17 +0800)
committer
Len 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
patch
|
blob
|
history
diff --git
a/drivers/acpi/acpica/nsdump.c
b/drivers/acpi/acpica/nsdump.c
index
0da33c8
..
e96d37a
100644
(file)
--- 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 */