diff options
| author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2026-09-21 21:46:37 +0200 |
|---|---|---|
| committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2026-09-22 18:45:17 +0200 |
| commit | 28bfd74601a4ac16310b0797c24e6220108c58d1 (patch) | |
| tree | 218c698813ff37c038b494dd8ae4f3af2f3a1601 /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | e7280ab196ba4bcef6d3f6ee860bf0d2c8e96e51 (diff) | |
ACPI: amba: Switch to use acpi_bus_get_primary_device()
Replace acpi_get_first_physical_node() that is slated for removal
with acpi_bus_get_primary_device() that takes a reference to the
device it is about to return.
This addresses a potential use-after-free that may occur if the
device returned by acpi_get_first_physical_node() is removed right
after dropping its ACPI companion's physical_node_lock in that
function.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Hanjun Guo <guohanjun@huawei.com>
Reviewed-by: Sudeep Holla <sudeep.holla@kernel.org>
Link: https://patch.msgid.link/3362405.5fSG56mABF@rafael.j.wysocki
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions
