Commit 025dc740 authored by Jiri Slaby's avatar Jiri Slaby Committed by Jean Delvare

hwmon: (max6650) Fix lock imbalance

Add omitted update_lock to one switch/case in set_div.
Signed-off-by: default avatarJiri Slaby <jirislaby@gmail.com>
Acked-by: default avatarHans J. Koch <hjk@linutronix.de>
Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
parent f00caa76
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment