mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
hwmon: (amc6821) Double unlock bug
The mutex gets unlocked after we goto EXIT. Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: Jean Delvare <[email protected]>
This commit is contained in:
parent
a00d643a2a
commit
316e2664dc
1 changed files with 0 additions and 1 deletions
|
|
@ -686,7 +686,6 @@ static ssize_t set_fan1_div(
|
|||
data->fan1_div = 4;
|
||||
break;
|
||||
default:
|
||||
mutex_unlock(&data->update_lock);
|
||||
count = -EINVAL;
|
||||
goto EXIT;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue