]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mac80211: free management frame keys when removing station
authorJohannes Berg <johannes.berg@intel.com>
Wed, 17 Dec 2014 12:55:49 +0000 (13:55 +0100)
committerJiri Slaby <jslaby@suse.cz>
Wed, 7 Jan 2015 16:55:07 +0000 (17:55 +0100)
commitd5c70d8fdcea383449a4ca6b25e3ec16d73e83ba
treee3b056f958772d817a080c4d209babc3c036dec9
parenta4346dd0a57d96e9f7c3d0cfafeda2a5568eb685
mac80211: free management frame keys when removing station

commit 28a9bc68124c319b2b3dc861e80828a8865fd1ba upstream.

When writing the code to allow per-station GTKs, I neglected to
take into account the management frame keys (index 4 and 5) when
freeing the station and only added code to free the first four
data frame keys.

Fix this by iterating the array of keys over the right length.

Fixes: e31b82136d1a ("cfg80211/mac80211: allow per-station GTKs")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
net/mac80211/key.c