]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211_hwsim: fix race condition with sta/vif pointers
authorThomas Huehn <thomas@net.t-labs.tu-berlin.de>
Fri, 13 Jul 2012 18:52:24 +0000 (20:52 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 17 Jul 2012 09:42:08 +0000 (11:42 +0200)
commita5a5c1d9eda1869c217ba275559bbc23c0b8d669
tree06ea78263fd7330630bc7db6848b1f812363862f
parent4825ca3a6a471c6283a3c781d5150c69247fabbb
mac80211_hwsim: fix race condition with sta/vif pointers

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>
[reword commit message]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/mac80211_hwsim.c