diff options
| author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2026-09-21 21:51:06 +0200 |
|---|---|---|
| committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2026-09-22 19:04:15 +0200 |
| commit | 37a78048d6161e13f61ab773dcbd6e7ba965e978 (patch) | |
| tree | b41d1c5d8245280153332b5661c0442198f217e0 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 7a4c8ddba1dcf7c63b329d81de1d494188e5d2b0 (diff) | |
thunderbolt: 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: Mika Westerberg <mika.westerberg@linux.intel.com>
Link: https://patch.msgid.link/1941270.atdPhlSkOF@rafael.j.wysocki
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
