projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28981e5
)
cfg80211: calls nl80211_exit on error
author
Junjie Mao
<junjie_mao@yeah.net>
Wed, 28 Jan 2015 02:03:26 +0000
(10:03 +0800)
committer
Johannes Berg
<johannes.berg@intel.com>
Tue, 24 Feb 2015 10:41:21 +0000
(11:41 +0100)
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>
net/wireless/core.c
patch
|
blob
|
blame
|
history
diff --git
a/net/wireless/core.c
b/net/wireless/core.c
index 3af0ecf1cc16859abecb7451df5cabe35d6dbf08..2a0bbd22854bd97b377139200f9e6b5e0ec2662f 100644
(file)
--- 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: