]> 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)
commit3128c7a4677c01d4bf8ee1ee5f7cff176ee61425
tree6de866bd4f98224d1f4f9b6797f436d1c8620512
parentb27be2a741be3e67668c2270d5eba552552937bc
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