Skip to content

Commit

Permalink
hwmon: (max6650) Fix lock imbalance
Browse files Browse the repository at this point in the history
Add omitted update_lock to one switch/case in set_div.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Acked-by: Hans J. Koch <hjk@linutronix.de>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
  • Loading branch information
Jiri Slaby authored and Jean Delvare committed Jul 11, 2009
1 parent f00caa7 commit 025dc74
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/hwmon/max6650.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 025dc74

Please sign in to comment.