summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorJunjie Mao <junjie_mao@yeah.net>2015-01-28 10:03:26 +0800
committerJohannes Berg <johannes.berg@intel.com>2015-02-24 11:41:21 +0100
commit81daf735f9fe35ef6bc4073068748b221d64fb47 (patch)
tree642c10e68fa1480ce44d6f972fdb8267a953519a /net
parent28981e5eb45fe13e1d2c9e0e2e189dc5c8682006 (diff)
downloadop-kernel-dev-81daf735f9fe35ef6bc4073068748b221d64fb47.zip
op-kernel-dev-81daf735f9fe35ef6bc4073068748b221d64fb47.tar.gz
cfg80211: calls nl80211_exit on error
nl80211_exit should be called in cfg80211_init if nl80211_init succeeds but regulatory_init or create_singlethread_workqueue fails. Signed-off-by: Junjie Mao <junjie_mao@yeah.net> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net')
-rw-r--r--net/wireless/core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/wireless/core.c b/net/wireless/core.c
index 3af0ecf..2a0bbd2 100644
--- a/net/wireless/core.c
+++ b/net/wireless/core.c
@@ -1199,6 +1199,7 @@ out_fail_wq:
regulatory_exit();
out_fail_reg:
debugfs_remove(ieee80211_debugfs_dir);
+ nl80211_exit();
out_fail_nl80211:
unregister_netdevice_notifier(&cfg80211_netdev_notifier);
out_fail_notifier:
OpenPOWER on IntegriCloud