Commit 316e2664 authored by Dan Carpenter's avatar Dan Carpenter Committed by Jean Delvare

hwmon: (amc6821) Double unlock bug

The mutex gets unlocked after we goto EXIT.
Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
parent a00d643a
...@@ -686,7 +686,6 @@ static ssize_t set_fan1_div( ...@@ -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;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment