]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: make key locking clearer
authorJohannes Berg <johannes.berg@intel.com>
Thu, 12 May 2011 12:31:49 +0000 (14:31 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 12 May 2011 18:10:53 +0000 (14:10 -0400)
commitf3945bb5abf33f5dbc199e7b73a55d76dc8a7fdb
treea189957b3a8e939d19da304541ba087f1264085a
parent23784fda7c095251b9f0cb97a9042482eebac3e1
mac80211: make key locking clearer

The code in ieee80211_del_key() doesn't acquire the
key_mtx properly when it dereferences the keys. It
turns out that isn't actually necessary since the
key_mtx itself seems to be redundant since all key
manipulations are done under the RTNL, but as long
as we have the key_mtx we should use it the right
way too.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/cfg.c
net/mac80211/key.c
net/mac80211/key.h