Commit 4b11f23
platform/x86: acer-wmi: Fix missing capability check
During the rework of the fan behavior control code in commit
d8e8362 ("platform/x86: acer-wmi: Fix setting of fan behavior"),
acer_toggle_turbo() was changed to use WMID_gaming_set_fan_behavior()
instead of WMID_gaming_set_u64() when switching the fans to turbo
mode. The new function however does not check if the necessary
capability (ACER_CAP_TURBO_FAN) is actually enabled on a given
machine, causing the driver to potentially access unsupported
features.
Fix this by manually checking if ACER_CAP_TURBO_FAN is enabled
on a given machine before changing the fan mode.
Cc: stable@vger.kernel.org
Fixes: d8e8362 ("platform/x86: acer-wmi: Fix setting of fan behavior")
Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Link: https://patch.msgid.link/20260108164716.14376-2-W_Armin@gmx.de
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>1 parent 4090171 commit 4b11f23
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2070 | 2070 | | |
2071 | 2071 | | |
2072 | 2072 | | |
2073 | | - | |
| 2073 | + | |
| 2074 | + | |
2074 | 2075 | | |
2075 | 2076 | | |
2076 | 2077 | | |
| |||
2084 | 2085 | | |
2085 | 2086 | | |
2086 | 2087 | | |
2087 | | - | |
| 2088 | + | |
| 2089 | + | |
2088 | 2090 | | |
2089 | 2091 | | |
2090 | 2092 | | |
| |||
0 commit comments