mac80211: fix potential use-after-free
authorJohannes Berg <johannes.berg@intel.com>
Tue, 4 Mar 2014 10:43:28 +0000 (11:43 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 19 Mar 2014 20:29:52 +0000 (21:29 +0100)
commitd2722f8b87fb172ff2f31d3a2816b31d58678d40
tree6944ac9cc71ffe7de37fa252b32c954810894418
parent255e25b0e5d4bd035d82f53011df619d8cc0bedb
mac80211: fix potential use-after-free

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

Cc: stable@vger.kernel.org (3.10+)
Fixes: 817cee7675237 ("mac80211: track AP's beacon rate and give it to the driver")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mlme.c