aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211')
-rw-r--r--net/mac80211/sta_info.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/net/mac80211/sta_info.c b/net/mac80211/sta_info.c
index f708367092d1..2a5a2f067bae 100644
--- a/net/mac80211/sta_info.c
+++ b/net/mac80211/sta_info.c
@@ -129,16 +129,18 @@ struct sta_info *sta_info_get_by_idx(struct ieee80211_local *local, int idx,
129 129
130void sta_info_destroy(struct sta_info *sta) 130void sta_info_destroy(struct sta_info *sta)
131{ 131{
132 struct ieee80211_local *local = sta->local; 132 struct ieee80211_local *local;
133 struct sk_buff *skb; 133 struct sk_buff *skb;
134 int i; 134 int i;
135 DECLARE_MAC_BUF(mbuf); 135 DECLARE_MAC_BUF(mbuf);
136 136
137 ASSERT_RTNL();
138 might_sleep();
139
137 if (!sta) 140 if (!sta)
138 return; 141 return;
139 142
140 ASSERT_RTNL(); 143 local = sta->local;
141 might_sleep();
142 144
143 rate_control_remove_sta_debugfs(sta); 145 rate_control_remove_sta_debugfs(sta);
144 ieee80211_sta_debugfs_remove(sta); 146 ieee80211_sta_debugfs_remove(sta);