diff options
author | Leonid Maksymchuk | 2020-03-04 13:38:11 +0200 |
---|---|---|
committer | Andy Shevchenko | 2020-03-20 14:44:46 +0200 |
commit | edeee341fd6c1099de357c517af215bee2c6f766 (patch) | |
tree | 6ef9f97241b25c5419f5b266d5f69bd8dd445ecd /crypto/michael_mic.c | |
parent | 6b3586d45bba14f6912f37488090c37a3710e7b4 (diff) |
platform/x86: asus_wmi: Fix return value of fan_boost_mode_store
Function fan_boost_mode_store returns 0 if store is successful,
this leads to infinite loop after any write to it's sysfs entry:
# echo 0 >/sys/devices/platform/asus-nb-wmi/fan_boost_mode
This command never ends, one CPU core is at 100% utilization.
This patch fixes this by returning size of written data.
Fixes: b096f626a682 ("platform/x86: asus-wmi: Switch fan boost mode")
Signed-off-by: Leonid Maksymchuk <leonmaxx@gmail.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'crypto/michael_mic.c')
0 files changed, 0 insertions, 0 deletions