Skip to content
Snippets Groups Projects
Commit fb03c5eb authored by Dan Carpenter's avatar Dan Carpenter Committed by John W. Linville
Browse files

mac80211: unlock on error path in ieee80211_ibss_join()


We recently introduced a new return here but it needs an unlock first.

Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent cc78d6b1
No related branches found
No related tags found
No related merge requests found
......@@ -993,8 +993,10 @@ int ieee80211_ibss_join(struct ieee80211_sub_if_data *sdata,
if (params->channel_fixed) {
sdata->local->oper_channel = params->channel;
if (!ieee80211_set_channel_type(sdata->local, sdata,
params->channel_type))
params->channel_type)) {
mutex_unlock(&sdata->u.ibss.mtx);
return -EINVAL;
}
}
if (params->ie) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment