summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2026-09-21 21:53:51 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2026-09-22 19:29:19 +0200
commit6f50ab7ab1f93e874fa75d18bf98bbca4ce0204f (patch)
tree72433e362da42c982e1a925f2f673b2b308de512 /tools/perf/scripts/python
parent37a78048d6161e13f61ab773dcbd6e7ba965e978 (diff)
ASoC: amd: acp-es8336: 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. It also fixes a device reference counting issue that may lead to a premature device release if gpiod_get_optional() fails in st_es8336_late_probe(). Fixes: 02527c3f2300 ("ASoC: amd: add Machine driver for Jadeite platform") Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Acked-by: Mark Brown <broonie@kerenl.org> Link: https://patch.msgid.link/2063881.yKVeVyVuyW@rafael.j.wysocki
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions