projects
/
platform
/
kernel
/
kernel-mfld-blackbay.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f00caa7
)
hwmon: (max6650) Fix lock imbalance
author
Jiri Slaby
<jirislaby@gmail.com>
Sat, 11 Jul 2009 11:42:37 +0000
(13:42 +0200)
committer
Jean Delvare
<khali@linux-fr.org>
Sat, 11 Jul 2009 11:42:37 +0000
(13:42 +0200)
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>
drivers/hwmon/max6650.c
patch
|
blob
|
history
diff --git
a/drivers/hwmon/max6650.c
b/drivers/hwmon/max6650.c
index
86142a8
..
58f66be
100644
(file)
--- 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;