From: Johannes Berg <johannes.berg@xxxxxxxxx> In the prep_channel error case we didn't release the deflink channel leaving it to be left around. Fix that. Signed-off-by: Johannes Berg <johannes.berg@xxxxxxxxx> --- net/mac80211/mlme.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index 4555d23b009e..13d075e6a318 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c @@ -6549,6 +6549,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; } -- 2.37.2