hwmon: (amc6821) Double unlock bug
authorDan Carpenter <error27@gmail.com>
Mon, 25 Jan 2010 14:00:49 +0000 (15:00 +0100)
committerJean Delvare <khali@linux-fr.org>
Mon, 25 Jan 2010 14:00:49 +0000 (15:00 +0100)
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>
drivers/hwmon/amc6821.c

index 1c89d922d6199ad3215a6806eedc647bdc9bf415..fa9708c2d723d27b52eece60e6a2c525ee65246c 100644 (file)
@@ -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;
        }