Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 81daf735 authored by Junjie Mao's avatar Junjie Mao Committed by Johannes Berg
Browse files

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: default avatarJunjie Mao <junjie_mao@yeah.net>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 28981e5e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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: