mac80211: fix sdata locking around __ieee80211_request_smps
authorJohannes Berg <johannes.berg@intel.com>
Mon, 3 Jun 2013 11:51:59 +0000 (13:51 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 3 Jun 2013 11:51:59 +0000 (13:51 +0200)
commited405be5cb5e8e494e8dcd83b6eb1add34dc752a
tree97e167b6dd4cc16aa31adcbba575c381013574c3
parenta8cd57b3042446250f19daf98d120802dffc768d
mac80211: fix sdata locking around __ieee80211_request_smps

My cfg80211/mac80211 locking unification broke the sdata
locking in ieee80211_set_power_mgmt, it needs to acquire
the lock for __ieee80211_request_smps(). Add the locking.

Reported-by: Jakub Kicinski <kubakici@wp.pl>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/cfg.c