Skip to content

Commit c1fbb25

Browse files
elpjmberg-intel
authored andcommitted
cfg80211: free sme on connection failures
cfg80211 is notified about connection failures by __cfg80211_connect_result() call. However, this function currently does not free cfg80211 sme. This results in hanging connection attempts in some cases e.g. when mac80211 authentication attempt is denied, we have this function call: ieee80211_rx_mgmt_auth() -> cfg80211_rx_mlme_mgmt() -> cfg80211_process_auth() -> cfg80211_sme_rx_auth() -> __cfg80211_connect_result() but cfg80211_sme_free() is never get called. Fixes: ceca7b7 ("cfg80211: separate internal SME implementation") Cc: stable@vger.kernel.org (3.10+) Signed-off-by: Eliad Peller <eliadx.peller@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
1 parent f4ebddf commit c1fbb25

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎net/wireless/sme.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,6 @@ void cfg80211_conn_work(struct work_struct *work)
234234
NULL, 0, NULL, 0,
235235
WLAN_STATUS_UNSPECIFIED_FAILURE,
236236
false, NULL);
237-
cfg80211_sme_free(wdev);
238237
}
239238
wdev_unlock(wdev);
240239
}
@@ -648,6 +647,7 @@ void __cfg80211_connect_result(struct net_device *dev, const u8 *bssid,
648647
cfg80211_unhold_bss(bss_from_pub(bss));
649648
cfg80211_put_bss(wdev->wiphy, bss);
650649
}
650+
cfg80211_sme_free(wdev);
651651
return;
652652
}
653653

0 commit comments

Comments
 (0)