]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: fix another key non-race
authorJohannes Berg <johannes.berg@intel.com>
Thu, 12 May 2011 13:07:15 +0000 (15:07 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 12 May 2011 18:10:54 +0000 (14:10 -0400)
commitf86b0a5f498f77bfd5ff982342f0bd26f4df8048
tree62e94c7423bbb073640fe4fe8454ba5135b0ebc8
parentf3945bb5abf33f5dbc199e7b73a55d76dc8a7fdb
mac80211: fix another key non-race

The code here is only not racy because all the
places that assign the pointers it uses are
holding the sta_mtx as well as the key_mtx and
so can't race against this because this code
holds the sta_mtx. But that's not intuitive,
so fix it to hold the key_mtx.

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