diff options
| author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2026-09-21 21:55:56 +0200 |
|---|---|---|
| committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2026-09-22 19:29:20 +0200 |
| commit | ec6bb46cf5f70b7df2b2d87bc3a7fbe55f60abc2 (patch) | |
| tree | e487cffabe7d7ce6235e6805d34ec70289a8ebad /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | e1aee48abfaeed1fe1a88018066d2f06c98c065f (diff) | |
ASoC: loongson: 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: Mark Brown <broonie@kerenl.org>
Link: https://patch.msgid.link/2796562.BddDVKsqQX@rafael.j.wysocki
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions
