Return-path: Received: from sabertooth01.qualcomm.com ([65.197.215.72]:11971 "EHLO sabertooth01.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756980Ab3BNJhQ (ORCPT ); Thu, 14 Feb 2013 04:37:16 -0500 From: Mohammed Shafi Shajakhan To: CC: Kalle Valo , Mohammed Shafi Shajakhan Subject: [PATCH 2/6] ath6kl: Protect ath6kl_cfg80211_vif_cleanup using rtnl_locks Date: Thu, 14 Feb 2013 15:07:08 +0530 Message-ID: <1360834628-11018-1-git-send-email-mohammed@qca.qualcomm.com> (sfid-20130214_103720_798524_4D4E6E6F) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-wireless-owner@vger.kernel.org List-ID: From: Mohammed Shafi Shajakhan 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 --- drivers/net/wireless/ath/ath6kl/cfg80211.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/wireless/ath/ath6kl/cfg80211.c b/drivers/net/wireless/ath/ath6kl/cfg80211.c index 8e45f41..227fc43 100644 --- a/drivers/net/wireless/ath/ath6kl/cfg80211.c +++ b/drivers/net/wireless/ath/ath6kl/cfg80211.c @@ -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; } -- 1.7.9.5