Skip to content

Commit

Permalink
mac80211: unlock on error path in ieee80211_ibss_join()
Browse files Browse the repository at this point in the history
We recently introduced a new return here but it needs an unlock first.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Dan Carpenter authored and John W. Linville committed Dec 13, 2011
1 parent cc78d6b commit fb03c5e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion net/mac80211/ibss.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit fb03c5e

Please sign in to comment.