Skip to content

Commit 7a2c6d1

Browse files
committed
wifi: mac80211: mlme: release deflink channel in error case
In the prep_channel error case we didn't release the deflink channel leaving it to be left around. Fix that. Change-Id: If0dfd748125ec46a31fc6045a480dc28e03723d2 Signed-off-by: Johannes Berg <johannes.berg@intel.com>
1 parent 4a86c54 commit 7a2c6d1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

net/mac80211/mlme.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6509,6 +6509,7 @@ static int ieee80211_prep_connection(struct ieee80211_sub_if_data *sdata,
65096509
return 0;
65106510

65116511
out_err:
6512+
ieee80211_link_release_channel(&sdata->deflink);
65126513
ieee80211_vif_set_links(sdata, 0);
65136514
return err;
65146515
}

0 commit comments

Comments
 (0)