diff options
| author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2026-09-21 21:50:28 +0200 |
|---|---|---|
| committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2026-09-22 19:03:12 +0200 |
| commit | 2058cd0f59caf475c8efad843b900a3119eb3a5c (patch) | |
| tree | dab0c5490bc6407b4966a115cffa972916aa0ca8 /tools/perf/scripts/python/syscall-counts.py | |
| parent | 790b502a4b019a71f1c3e1d7904c7426ac2f2e11 (diff) | |
platform/x86: x86-android-tablets: 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>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Reviewed-by: Hans de Goede <johannes.goede@oss.qualcomm.com>
Link: https://patch.msgid.link/3912360.MHq7AAxBmi@rafael.j.wysocki
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions
