提交 81daf735 编写于 作者: J Junjie Mao 提交者: Johannes Berg

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: NJunjie Mao <junjie_mao@yeah.net>
Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
上级 28981e5e
......@@ -1199,6 +1199,7 @@ static int __init cfg80211_init(void)
regulatory_exit();
out_fail_reg:
debugfs_remove(ieee80211_debugfs_dir);
nl80211_exit();
out_fail_nl80211:
unregister_netdevice_notifier(&cfg80211_netdev_notifier);
out_fail_notifier:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册