]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211_hwsim: fix possible race condition in usage of info->control.sta & control.vif
authorThomas Huehn <thomas@net.t-labs.tu-berlin.de>
Tue, 17 Jul 2012 20:16:13 +0000 (22:16 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 26 Jul 2012 19:37:57 +0000 (15:37 -0400)
commit15a116769ada4a6e0f5f1da3363316a83409af91
treeeca9850ffb94a18ed2b2bf3271823b1b48593eef
parentde10293ee2aedebf06eb0313f97db457c8efa526
mac80211_hwsim: fix possible race condition in usage of info->control.sta & control.vif

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

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