]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: fix SMPS debugfs locking
authorJohannes Berg <johannes.berg@intel.com>
Tue, 19 Apr 2011 18:44:04 +0000 (20:44 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 20 Apr 2011 20:05:59 +0000 (16:05 -0400)
commit9501832ec22d0266eb49b6b685bc80d32e54da00
treedafe7720e68fcb8e9ce1d5d871386b9e6380f67b
parent9bca127a6a49b165825d78243b4d8403064baa3d
mac80211: fix SMPS debugfs locking

The locking with SMPS requests means that the
debugs file should lock the mgd mutex, not the
iflist mutex. Calls to __ieee80211_request_smps()
need to hold that mutex, so add an assertion.

This has always been wrong, but for some reason
never been noticed, probably because the locking
error only happens while unassociated.

Cc: stable@kernel.org [2.6.34+]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/cfg.c
net/mac80211/debugfs_netdev.c