diff options
Diffstat (limited to 'net/mac80211/sta_info.c')
-rw-r--r-- | net/mac80211/sta_info.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net/mac80211/sta_info.c b/net/mac80211/sta_info.c index a79ce820cb50..0141e4951adf 100644 --- a/net/mac80211/sta_info.c +++ b/net/mac80211/sta_info.c | |||
@@ -794,9 +794,11 @@ int __must_check __sta_info_destroy(struct sta_info *sta) | |||
794 | 794 | ||
795 | mutex_lock(&local->key_mtx); | 795 | mutex_lock(&local->key_mtx); |
796 | for (i = 0; i < NUM_DEFAULT_KEYS; i++) | 796 | for (i = 0; i < NUM_DEFAULT_KEYS; i++) |
797 | __ieee80211_key_free(key_mtx_dereference(local, sta->gtk[i])); | 797 | __ieee80211_key_free(key_mtx_dereference(local, sta->gtk[i]), |
798 | true); | ||
798 | if (sta->ptk) | 799 | if (sta->ptk) |
799 | __ieee80211_key_free(key_mtx_dereference(local, sta->ptk)); | 800 | __ieee80211_key_free(key_mtx_dereference(local, sta->ptk), |
801 | true); | ||
800 | mutex_unlock(&local->key_mtx); | 802 | mutex_unlock(&local->key_mtx); |
801 | 803 | ||
802 | sta->dead = true; | 804 | sta->dead = true; |