Message ID | 1371490288-23167-2-git-send-email-kamal@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/net/wireless/sme.c b/net/wireless/sme.c index f2431e4..d547d2f 100644 --- a/net/wireless/sme.c +++ b/net/wireless/sme.c @@ -224,6 +224,9 @@ void cfg80211_conn_work(struct work_struct *work) mutex_lock(&rdev->devlist_mtx); list_for_each_entry(wdev, &rdev->wdev_list, list) { + if (!wdev->netdev) + continue; + wdev_lock(wdev); if (!netif_running(wdev->netdev)) { wdev_unlock(wdev);