mac80211: fix race in TKIP MIC test debugfs file
authorJohannes Berg <johannes.berg@intel.com>
Mon, 5 Nov 2012 19:27:57 +0000 (20:27 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 7 Nov 2012 17:01:39 +0000 (18:01 +0100)
commit41c97a2032e753d7975828c51b23b570dc6f9b0d
tree6de866bd4f98224d1f4f9b6797f436d1c8620512
parent28656a111af70116027fb0a0931df4b46d7375b1
mac80211: fix race in TKIP MIC test debugfs file

Accessing sdata->vif.bss_conf.bssid without any
protection here is racy, use u.mgd.associated
instead and lock the correct mutex for it.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/debugfs_netdev.c