]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: fix locking and lockdep complaints
authorJohannes Berg <johannes.berg@intel.com>
Tue, 10 Jul 2012 17:39:02 +0000 (19:39 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 12 Jul 2012 10:10:49 +0000 (12:10 +0200)
commit5a64c916833e957534f34f57f85c8d4e05fde3a8
tree597f5817baab936980b6d888bfe695e8a40dc747
parentce6417361a1a5bc7810e7db2a4ab8e66d69e92e8
cfg80211: fix locking and lockdep complaints

To call cfg80211_get_chan_state() we need to lock
the wdev, so we need to lock the wdev_iter mutex
in cfg80211_can_use_iftype_chan(). This needs to
use nested locking for lockdep.

Also, cfg80211_get_chan_state() doesn't actually
use the rdev, so remove that completely including
the lock assertion that isn't needed.

Reported-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/chan.c
net/wireless/core.h
net/wireless/util.c