HWMON: max6650, fix lock imbalance
PATCH 1/1 HWMON: max6650, fix lock imbalance
Add omitted update_lock to one switch/case in set_div.
Signed-off-by Jiri Slaby <[email protected]>
--- drivers/hwmon/max6650.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/hwmon/max6650.c +1 -0
@@ -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 ;
Signature · 7 lines
1.6.3.2 _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Quoted 1 line · Jiri Slaby
Add omitted
update_lockto one switch/case inset_div.
Ahem, yes, thanks!
Quoted 2 lines
Signed-off-by Jiri Slaby <[email protected]>
Signed-off-by Hans J. Koch <[email protected]>
Quoted 18 lines
--- drivers/hwmon/max6650.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)drivers/hwmon/max6650.c +1
-0@@ -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 ;Signature · 1 line
1.6.3.2
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Jean Delvare
AppliedQuoted 14 lines · Hans J. Koch
Quoted 1 line · Jiri Slaby
Add omitted
update_lockto one switch/case inset_div.Ahem, yes, thanks!
Quoted 2 lines
Signed-off-by Jiri Slaby <[email protected]>Signed-off-by Hans J. Koch <[email protected]>Quoted 4 lines
--- drivers/hwmon/max6650.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
Quoted 12 lines
drivers/hwmon/max6650.c static ssize_t set_div(struct device *dev, struct device_attribute *devattr, · line 424
Quoted 12 lines
drivers/hwmon/max6650.c +1
-0@@ -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 ;
Applied, thanks.
Signature · 6 lines
Jean Delvare _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors