cfg80211: fix locking
authorJohannes Berg <johannes.berg@intel.com>
Thu, 30 Sep 2010 20:17:43 +0000 (22:17 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 9 Dec 2010 21:32:07 +0000 (13:32 -0800)
commitb793ec85f7f5759427ad63b343aff83f0f6bbc67
treef9f3b3bdb931a080b3143300f3ce78e6542140bf
parent4b99d7de1c22088154e6d5a0035bd1cd73ff4e5e
cfg80211: fix locking

commit 2234362c427e2ef667595b9b81c0125003ac5607 upstream.

Add missing unlocking of the wiphy in set_channel,
and don't try to unlock a non-existing wiphy in
set_cqm.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/wireless/nl80211.c