mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
hwmon: (max6650) Fix lock imbalance
Add omitted update_lock to one switch/case in set_div. Signed-off-by: Jiri Slaby <[email protected]> Acked-by: Hans J. Koch <[email protected]> Signed-off-by: Jean Delvare <[email protected]>
This commit is contained in:
parent
f00caa7629
commit
025dc740d0
1 changed files with 1 additions and 0 deletions
|
|
@ -418,6 +418,7 @@ static ssize_t set_div(struct device *dev, struct device_attribute *devattr,
|
|||
data->count = 3;
|
||||
break;
|
||||
default:
|
||||
mutex_unlock(&data->update_lock);
|
||||
dev_err(&client->dev,
|
||||
"illegal value for fan divider (%d)\n", div);
|
||||
return -EINVAL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue