提交 025dc740 编写于 作者: J Jiri Slaby 提交者: Jean Delvare

hwmon: (max6650) Fix lock imbalance

Add omitted update_lock to one switch/case in set_div.
Signed-off-by: NJiri Slaby <jirislaby@gmail.com>
Acked-by: NHans J. Koch <hjk@linutronix.de>
Signed-off-by: NJean Delvare <khali@linux-fr.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册