Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Bob Moore and committed by
Len Brown
4bbfb85d 8e0ee43b

+6
+6
drivers/acpi/acpica/nsdump.c
··· 181 181 } 182 182 183 183 this_node = acpi_ns_map_handle_to_node(obj_handle); 184 + if (!this_node) { 185 + ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Invalid object handle %p\n", 186 + obj_handle)); 187 + return (AE_OK); 188 + } 189 + 184 190 type = this_node->type; 185 191 186 192 /* Check if the owner matches */