diff --git a/net/wireless/sme.c b/net/wireless/sme.c index 8b5eddfba1e5dfed07b1fb528204c125db2d7331..3ed35c345caed81966eb0ad52b7e1a4b350ec473 100644 --- a/net/wireless/sme.c +++ b/net/wireless/sme.c @@ -231,6 +231,9 @@ void cfg80211_conn_work(struct work_struct *work) mutex_lock(&rdev->sched_scan_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);