diff options
author | Dan Carpenter <error27@gmail.com> | 2010-01-25 15:00:49 +0100 |
---|---|---|
committer | Jean Delvare <khali@linux-fr.org> | 2010-01-25 15:00:49 +0100 |
commit | 316e2664dcc82e9c5f73360a4fb8f9279a8152ed (patch) | |
tree | e305e6e6ef37ff528af19434ef86dce06b711045 | |
parent | a00d643a2a841e76dfb76ec4f8a1e71844252974 (diff) | |
download | op-kernel-dev-316e2664dcc82e9c5f73360a4fb8f9279a8152ed.zip op-kernel-dev-316e2664dcc82e9c5f73360a4fb8f9279a8152ed.tar.gz |
hwmon: (amc6821) Double unlock bug
The mutex gets unlocked after we goto EXIT.
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
-rw-r--r-- | drivers/hwmon/amc6821.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/hwmon/amc6821.c b/drivers/hwmon/amc6821.c index 1c89d92..fa9708c 100644 --- a/drivers/hwmon/amc6821.c +++ b/drivers/hwmon/amc6821.c @@ -686,7 +686,6 @@ static ssize_t set_fan1_div( data->fan1_div = 4; break; default: - mutex_unlock(&data->update_lock); count = -EINVAL; goto EXIT; } |