Skip to content

Commit

Permalink
hwmon: (amc6821) Double unlock bug
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
error27 authored and Jean Delvare committed Jan 25, 2010
1 parent a00d643 commit 316e266
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/hwmon/amc6821.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 316e266

Please sign in to comment.