cfg80211: avoid holding the RTNL when calling the driver
[sfrench/cifs-2.6.git] / drivers / net / wireless / ath / ath6kl / init.c
index 39bf196861751ef313c78554142b776a217ed2f9..9b5c7d8f2b95e00bb69410756a114559a66c42c3 100644 (file)
@@ -1904,7 +1904,9 @@ void ath6kl_stop_txrx(struct ath6kl *ar)
                spin_unlock_bh(&ar->list_lock);
                ath6kl_cfg80211_vif_stop(vif, test_bit(WMI_READY, &ar->flag));
                rtnl_lock();
+               wiphy_lock(ar->wiphy);
                ath6kl_cfg80211_vif_cleanup(vif);
+               wiphy_unlock(ar->wiphy);
                rtnl_unlock();
                spin_lock_bh(&ar->list_lock);
        }