]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: don't require RTNL held for regdomain reads
authorJohannes Berg <johannes.berg@intel.com>
Tue, 27 Feb 2018 10:22:15 +0000 (11:22 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 29 Mar 2018 09:11:50 +0000 (11:11 +0200)
commit31088f0d303282bfc85aaaedd588de0a1d159e7d
treeee97c73c151536a071f5917ffa79175d82fb4721
parent00a13eb12e0fdc06d995b4f4dc19bcad5e19b9be
cfg80211: don't require RTNL held for regdomain reads

The whole code is set up to allow RCU reads of this data, but
then uses rtnl_dereference() which requires the RTNL. Convert
it to rcu_dereference_rtnl() which makes it require only RCU
or the RTNL, to allow RCU-protected reading of the data.

Reviewed-by: Coelho, Luciano <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/reg.c