Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 247636
b: refs/heads/master
c: 8cb2315
h: refs/heads/master
v: v3
  • Loading branch information
Johannes Berg authored and John W. Linville committed May 12, 2011
1 parent 7ca2726 commit 918fece
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 5c0c36412b2dc6b1e243c7e9115306fe286583b7
refs/heads/master: 8cb231530f03961b55aa4e84e6ead5590bcde04d
6 changes: 4 additions & 2 deletions trunk/net/mac80211/sta_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -652,10 +652,12 @@ static int __must_check __sta_info_destroy(struct sta_info *sta)
if (ret)
return ret;

mutex_lock(&local->key_mtx);
for (i = 0; i < NUM_DEFAULT_KEYS; i++)
ieee80211_key_free(local, sta->gtk[i]);
__ieee80211_key_free(sta->gtk[i]);
if (sta->ptk)
ieee80211_key_free(local, sta->ptk);
__ieee80211_key_free(sta->ptk);
mutex_unlock(&local->key_mtx);

sta->dead = true;

Expand Down

0 comments on commit 918fece

Please sign in to comment.