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>
This commit is contained in:
parent
a00d643a2a
commit
316e2664dc
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue