aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
diff options
context:
space:
mode:
authorTakashi Iwai <[email protected]>2025-08-27 05:24:33 +0000
committerIlpo Järvinen <[email protected]>2025-08-28 15:46:31 +0000
commit5549202b9c02c2ecbc8634768a3da8d9e82d548d (patch)
treef26040b8de714a1ea9eefe0441cec0d890e58a7c /drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
parentplatform/x86/amd/pmc: Add TUXEDO IB Pro Gen10 AMD to spurious 8042 quirks list (diff)
downloadkernel-5549202b9c02c2ecbc8634768a3da8d9e82d548d.tar.gz
kernel-5549202b9c02c2ecbc8634768a3da8d9e82d548d.zip
platform/x86: asus-wmi: Fix racy registrations
asus_wmi_register_driver() may be called from multiple drivers concurrently, which can lead to the racy list operations, eventually corrupting the memory and hitting Oops on some ASUS machines. Also, the error handling is missing, and it forgot to unregister ACPI lps0 dev ops in the error case. This patch covers those issues by introducing a simple mutex at acpi_wmi_register_driver() & *_unregister_driver, and adding the proper call of asus_s2idle_check_unregister() in the error path. Fixes: feea7bd6b02d ("platform/x86: asus-wmi: Refactor Ally suspend/resume") Link: https://bugzilla.suse.com/show_bug.cgi?id=1246924 Link: https://lore.kernel.org/[email protected] Signed-off-by: Takashi Iwai <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Ilpo Järvinen <[email protected]> Signed-off-by: Ilpo Järvinen <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c')
0 files changed, 0 insertions, 0 deletions