mac80211: fix potential use-after-free
authorJohannes Berg <johannes.berg@intel.com>
Tue, 4 Mar 2014 10:43:28 +0000 (11:43 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 May 2014 11:32:52 +0000 (13:32 +0200)
commit2c6d6302d8adb46db2157673b9ee1b7497d2968c
treef6d4e7602ea0e1c1bf78886771e4d25916dc5b17
parente24b7822c7fea8d23d30baea8aabf96ec8522936
mac80211: fix potential use-after-free

commit d2722f8b87fb172ff2f31d3a2816b31d58678d40 upstream.

The bss struct might be freed in ieee80211_rx_bss_put(),
so we shouldn't use it afterwards.

Fixes: 817cee7675237 ("mac80211: track AP's beacon rate and give it to the driver")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/mac80211/mlme.c