diff options
author | Junjie Mao <junjie_mao@yeah.net> | 2015-01-28 10:03:26 +0800 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2015-02-24 11:41:21 +0100 |
commit | 81daf735f9fe35ef6bc4073068748b221d64fb47 (patch) | |
tree | 642c10e68fa1480ce44d6f972fdb8267a953519a /net/wireless | |
parent | 28981e5eb45fe13e1d2c9e0e2e189dc5c8682006 (diff) | |
download | linux-81daf735f9fe35ef6bc4073068748b221d64fb47.tar.gz linux-81daf735f9fe35ef6bc4073068748b221d64fb47.tar.bz2 linux-81daf735f9fe35ef6bc4073068748b221d64fb47.zip |
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/wireless')
-rw-r--r-- | net/wireless/core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/wireless/core.c b/net/wireless/core.c index 3af0ecf1cc16..2a0bbd22854b 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: |