mwifiex: guard station nodes access by station list lock
authorAvinash Patil <patila@marvell.com>
Fri, 5 Dec 2014 17:53:41 +0000 (23:23 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 5 Dec 2014 19:15:25 +0000 (14:15 -0500)
commitc11fb9857f8c7951e30509c5af72ada8e121be8b
tree60cea5b4884ea221e936e1a29444678ffe508596
parent9817fffbf04caae2843bc09321561afdea8c8d89
mwifiex: guard station nodes access by station list lock

Station node entries should be guarded for whole of their reference
instead of just while getting node entry from station list.
It may happen that station node is retrieved may be deleted by
deauthentication event while it is still in use.

Reported by: Tim Shepard <shep@xplot.org>
Signed-off-by: Avinash Patil <patila@marvell.com>
Signed-off-by: Cathy Luo <cluo@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/11n.c
drivers/net/wireless/mwifiex/11n_rxreorder.c
drivers/net/wireless/mwifiex/uap_txrx.c
drivers/net/wireless/mwifiex/wmm.c