Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4bbfb85d authored by Bob Moore's avatar Bob Moore Committed by Len Brown
Browse files

ACPICA: Add error check to debug object dump routine



Add check for invalid handle in acpi_ns_dump_one_object.

Signed-off-by: default avatarBob Moore <robert.moore@intel.com>
Signed-off-by: default avatarLin Ming <ming.m.lin@intel.com>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 8e0ee43b
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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 */