]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite540a7a4a439a01e9769366bd16b1e3ebb26c230
tree6de866bd4f98224d1f4f9b6797f436d1c8620512
parentf49feea2115e20a6a31ac838b05d4ae356229188
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