summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon
diff options
context:
space:
mode:
authorJiri Slaby <jirislaby@gmail.com>2009-07-11 13:42:37 +0200
committerJean Delvare <khali@linux-fr.org>2009-07-11 13:42:37 +0200
commit025dc740d01f99ccba945df1f9ef9e06b1c15d96 (patch)
tree36f965fa0b2cce8c77f980d7f6e902acecd0d309 /drivers/hwmon
parentf00caa76297a534e30c3ec85382fbc3fd0dcbc69 (diff)
downloadtalos-obmc-linux-025dc740d01f99ccba945df1f9ef9e06b1c15d96.tar.gz
talos-obmc-linux-025dc740d01f99ccba945df1f9ef9e06b1c15d96.zip
hwmon: (max6650) Fix lock imbalance
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>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r--drivers/hwmon/max6650.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/hwmon/max6650.c b/drivers/hwmon/max6650.c
index 86142a858238..58f66be61b1f 100644
--- a/drivers/hwmon/max6650.c
+++ b/drivers/hwmon/max6650.c
@@ -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;
OpenPOWER on IntegriCloud