diff options
| author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2026-08-10 13:40:18 +0200 |
|---|---|---|
| committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2026-08-14 21:49:46 +0200 |
| commit | 87ee7d704f69f303c86b2dcf617e33764371fe7b (patch) | |
| tree | 7aada36f82f2b78c011b73c9544d3045607b4046 /samples/workqueue | |
| parent | a9ba4dd2f18bf3f439d9ef0d8f375f90360ba1bd (diff) | |
| download | linux-stable-87ee7d704f69f303c86b2dcf617e33764371fe7b.tar.gz linux-stable-87ee7d704f69f303c86b2dcf617e33764371fe7b.zip | |
ACPI: scan: Use acpi_bus_get_primary_device()
The acpi_get_first_physical_node() usage in acpi_create_video_bus_device()
is generally unsafe because in theory the device returned by it may be
freed at any time.
Address this issues by using acpi_bus_get_primary_device() instead of
acpi_get_first_physical_node() and dropping the device reference
acquired by it after registering the child.
Fixes: 6ab3532b4c98 ("ACPI: video: Switch over to auxiliary bus type")
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/10906414.nUPlyArG6x@rafael.j.wysocki
Diffstat (limited to 'samples/workqueue')
0 files changed, 0 insertions, 0 deletions
