diff --git a/net/wireless/sme.c b/net/wireless/sme.c index bad4c4b5e4eb90f667f5a749b4ab201803d4abe7..88fc9aa54fe0a416ba613864959fb4d362abe503 100644 --- a/net/wireless/sme.c +++ b/net/wireless/sme.c @@ -234,7 +234,7 @@ void cfg80211_conn_work(struct work_struct *work) wdev_unlock(wdev); continue; } - if (wdev->sme_state != CFG80211_SME_CONNECTING) { + if (wdev->sme_state != CFG80211_SME_CONNECTING || !wdev->conn) { wdev_unlock(wdev); continue; }