From: Zhu Yi Date: Thu, 16 Jul 2009 09:34:14 +0000 (+0800) Subject: cfg80211: remove WARN_ON in __cfg80211_sme_scan_done X-Git-Tag: MMI-PSA29.97-13-9~26976^2~544^2~44 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d4b1a6876f99ae1886cd254f649506af6692ac9f;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git cfg80211: remove WARN_ON in __cfg80211_sme_scan_done cfg80211_sme_scan_done() can be called (by fullmac cards) with wdev->conn == NULL when CFG80211_SME_CONNECTING. We quit silently instead of WARN_ON in this case. Signed-off-by: Zhu Yi Acked-by: Johannes Berg Signed-off-by: John W. Linville --- diff --git a/net/wireless/sme.c b/net/wireless/sme.c index 10ed36621bd7..e7a8851093a7 100644 --- a/net/wireless/sme.c +++ b/net/wireless/sme.c @@ -227,7 +227,7 @@ static void __cfg80211_sme_scan_done(struct net_device *dev) if (wdev->sme_state != CFG80211_SME_CONNECTING) return; - if (WARN_ON(!wdev->conn)) + if (!wdev->conn) return; if (wdev->conn->state != CFG80211_CONN_SCANNING &&