Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 279346
b: refs/heads/master
c: 27bf888
h: refs/heads/master
v: v3
  • Loading branch information
Yogesh Ashok Powar authored and John W. Linville committed Dec 19, 2011
1 parent 490c83a commit ba74abf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 23de5dc9be28b59a8474bcbba278230c66f0759d
refs/heads/master: 27bf88829f50cf1af2b052ecee2f6f0dbe4a5141
9 changes: 7 additions & 2 deletions trunk/net/mac80211/sta_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -822,10 +822,13 @@ static int __must_check __sta_info_destroy(struct sta_info *sta)
* until the aggregation stop completes. Refer
* http://thread.gmane.org/gmane.linux.kernel.wireless.general/81936
*/

mutex_lock(&sta->ampdu_mlme.mtx);

for (i = 0; i < STA_TID_NUM; i++) {
if (!sta->ampdu_mlme.tid_tx[i])
tid_tx = rcu_dereference_protected_tid_tx(sta, i);
if (!tid_tx)
continue;
tid_tx = sta->ampdu_mlme.tid_tx[i];
if (skb_queue_len(&tid_tx->pending)) {
#ifdef CONFIG_MAC80211_HT_DEBUG
wiphy_debug(local->hw.wiphy, "TX A-MPDU purging %d "
Expand All @@ -837,6 +840,8 @@ static int __must_check __sta_info_destroy(struct sta_info *sta)
kfree_rcu(tid_tx, rcu_head);
}

mutex_unlock(&sta->ampdu_mlme.mtx);

sta_info_free(local, sta);

return 0;
Expand Down

0 comments on commit ba74abf

Please sign in to comment.