mac80211: sync acccess to tx_filtered/ps_tx_buf queues
authorArik Nemtsov <arik@wizery.com>
Mon, 5 Nov 2012 08:27:52 +0000 (10:27 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 26 Nov 2012 19:37:40 +0000 (11:37 -0800)
commit1cbc74e7edf24ac527c502e3e936bc4350ec4622
tree3f44b697aa61f84bcf2285ae9c5b6754c99bd692
parent0244d2ed647d788233ad72d32986bc0ee9a71d5b
mac80211: sync acccess to tx_filtered/ps_tx_buf queues

commit 987c285c2ae2e4e32aca3a9b3252d28171c75711 upstream.

These are accessed without a lock when ending STA PSM. If the
sta_cleanup timer accesses these lists at the same time, we might crash.

This may fix some mysterious crashes we had during
ieee80211_sta_ps_deliver_wakeup.

Signed-off-by: Arik Nemtsov <arik@wizery.com>
Signed-off-by: Ido Yariv <ido@wizery.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/mac80211/sta_info.c