projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'mvebu-fixes-3.19' of git://git.infradead.org/linux-mvebu into fixes
[firefly-linux-kernel-4.4.55.git]
/
net
/
mac80211
/
key.c
diff --git
a/net/mac80211/key.c
b/net/mac80211/key.c
index 434a91ad12c88dabcc2674413e86d08386c3b37d..0bb7038121ac5557ba90114b706f8cbc0e404af2 100644
(file)
--- a/
net/mac80211/key.c
+++ b/
net/mac80211/key.c
@@
-656,7
+656,7
@@
void ieee80211_free_sta_keys(struct ieee80211_local *local,
int i;
mutex_lock(&local->key_mtx);
- for (i = 0; i <
NUM_DEFAULT_KEYS
; i++) {
+ for (i = 0; i <
ARRAY_SIZE(sta->gtk)
; i++) {
key = key_mtx_dereference(local, sta->gtk[i]);
if (!key)
continue;