ath6kl: Protect ath6kl_cfg80211_vif_cleanup using rtnl_locks
authorMohammed Shafi Shajakhan <mohammed@qca.qualcomm.com>
Fri, 22 Feb 2013 14:50:09 +0000 (20:20 +0530)
committerKalle Valo <kvalo@qca.qualcomm.com>
Tue, 5 Mar 2013 07:41:54 +0000 (09:41 +0200)
ath6kl_cfg80211_vif_cleanup calls 'unregister_netdevice' which
inturn calls 'unregister_netdevice_queue' and it requires holding
rtnl_lock semaphore protection.

Signed-off-by: Mohammed Shafi Shajakhan <mohammed@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath6kl/cfg80211.c

index ad79880ebfafa84fa84d1f7b4c35a48000fbc3e9..982dbf666a153c4f442e854c6d9c1d680e57976f 100644 (file)
@@ -1535,7 +1535,9 @@ static int ath6kl_cfg80211_del_iface(struct wiphy *wiphy,
 
        ath6kl_cfg80211_vif_stop(vif, test_bit(WMI_READY, &ar->flag));
 
+       rtnl_lock();
        ath6kl_cfg80211_vif_cleanup(vif);
+       rtnl_unlock();
 
        return 0;
 }