Input: pwm-beeper - fix - scheduling while atomic
[pandora-kernel.git] / net / wireless / sme.c
index 0acfdc9..c1c6e6d 100644 (file)
@@ -220,6 +220,9 @@ void cfg80211_conn_work(struct work_struct *work)
        mutex_lock(&rdev->devlist_mtx);
 
        list_for_each_entry(wdev, &rdev->netdev_list, list) {
+               if (!wdev->netdev)
+                       continue;
+
                wdev_lock(wdev);
                if (!netif_running(wdev->netdev)) {
                        wdev_unlock(wdev);