From: Jiri Slaby Date: Sat, 11 Jul 2009 11:42:37 +0000 (+0200) Subject: hwmon: (max6650) Fix lock imbalance X-Git-Tag: v2.6.30.4~17 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=9783772fe815ac811a3d73757a2f86ec9dceef00;p=karo-tx-linux.git hwmon: (max6650) Fix lock imbalance commit 025dc740d01f99ccba945df1f9ef9e06b1c15d96 upstream. Add omitted update_lock to one switch/case in set_div. Signed-off-by: Jiri Slaby Acked-by: Hans J. Koch Signed-off-by: Jean Delvare Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/hwmon/max6650.c b/drivers/hwmon/max6650.c index f27af6a9da41..65cf25f9d2f2 100644 --- a/drivers/hwmon/max6650.c +++ b/drivers/hwmon/max6650.c @@ -407,6 +407,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;