summaryrefslogtreecommitdiffstats
path: root/net/mac80211/mlme.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2022-09-02 16:11:15 +0200
committerJohannes Berg <johannes.berg@intel.com>2022-09-03 16:40:06 +0200
commit7a2c6d1616be5d49c0dae2c876af3fe20e71a111 (patch)
treee1e2bb000514140592ba438ffbee72e5b1ded326 /net/mac80211/mlme.c
parentwifi: mac80211: fix link warning in RX agg timer expiry (diff)
downloadlinux-7a2c6d1616be5d49c0dae2c876af3fe20e71a111.tar.xz
linux-7a2c6d1616be5d49c0dae2c876af3fe20e71a111.zip
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>
Diffstat (limited to 'net/mac80211/mlme.c')
-rw-r--r--net/mac80211/mlme.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index 3d4ab711f0d1..4c40f0427e88 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -6509,6 +6509,7 @@ static int ieee80211_prep_connection(struct ieee80211_sub_if_data *sdata,
return 0;
out_err:
+ ieee80211_link_release_channel(&sdata->deflink);
ieee80211_vif_set_links(sdata, 0);
return err;
}