]> git.baikalelectronics.ru Git - kernel.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)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 17 Dec 2014 13:00:17 +0000 (14:00 +0100)
commit91e44f3bbecf201844d0cdbfe4a10b26702868cc
tree442256aed3ae236fd4cdcdaa63a8ade6805c49af
parent8f50b2026105a4c876fd2963effd0d4dde50ba84
mac80211: free management frame keys when removing station

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.

Cc: stable@vger.kernel.org
Fixes: 121ffca2a7f4 ("cfg80211/mac80211: allow per-station GTKs")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/key.c