mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 04:06:22 +00:00
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>
This commit is contained in:
parent
8e0ee43bc2
commit
4bbfb85da2
1 changed files with 6 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue