mwl8k: fix possible race condition in info->control.sta use
authorThomas Huehn <thomas@net.t-labs.tu-berlin.de>
Wed, 11 Jul 2012 11:21:41 +0000 (13:21 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 11 Jul 2012 20:24:55 +0000 (16:24 -0400)
commit89e1180121f281af16855d4954b9fe3d7354fe73
tree938aa107885c2a1664e8fdcd21f174b98ea2c162
parent7c41f3159ca4f04dfc22c791fd96d3d057dcaf90
mwl8k: fix possible race condition in info->control.sta use

info->control.sta may only be dereferenced during the drv_tx call otherwise
could lead to use-after-free bugs

Reported-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Thomas Huehn <thomas@net.t-labs.tu-berlin.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwl8k.c