mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-29 07:04:10 +08:00
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;
|
data->fan1_div = 4;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
mutex_unlock(&data->update_lock);
|
|
||||||
count = -EINVAL;
|
count = -EINVAL;
|
||||||
goto EXIT;
|
goto EXIT;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user