Skip to content

Commit

Permalink
ACPICA: Add error check to debug object dump routine
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Bob Moore authored and Len Brown committed Mar 26, 2009
1 parent 8e0ee43 commit 4bbfb85
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/acpi/acpica/nsdump.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 4bbfb85

Please sign in to comment.