projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a86c54
)
wifi: mac80211: mlme: release deflink channel in error case
author
Johannes Berg
<johannes.berg@intel.com>
Fri, 2 Sep 2022 14:11:15 +0000
(16:11 +0200)
committer
Johannes Berg
<johannes.berg@intel.com>
Sat, 3 Sep 2022 14:40:06 +0000
(16:40 +0200)
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>
net/mac80211/mlme.c
patch
|
blob
|
history
diff --git
a/net/mac80211/mlme.c
b/net/mac80211/mlme.c
index 3d4ab711f0d1ebd5d4584d36e23909b3b894bdd1..4c40f0427e88033941d02a2ea0946140559c18d3 100644
(file)
--- 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;
}