diff options
| author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2026-09-30 20:43:03 +0200 |
|---|---|---|
| committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2026-10-01 20:29:39 +0200 |
| commit | 0d20d54f089eca8cf43ecc9a2bca552d322619da (patch) | |
| tree | b2e87be76696ba5b4bb4cca3f55e88058c671ac2 /include/linux | |
| parent | 62d6cb1f7de0f88c6f13415e0cdb413b09cdf348 (diff) | |
iommu/arm-smmu-v3: 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>
Reviewed-by: Nicolin Chen <nicolinc@nvidia.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/3636226.QJadu78ljV@rafael.j.wysocki
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
