Skip to content

Commit

Permalink
cfg80211: calls nl80211_exit on error
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Johannes Berg <[email protected]>
  • Loading branch information
Junjie Mao authored and jmberg-intel committed Feb 24, 2015
1 parent 28981e5 commit 81daf73
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/wireless/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 81daf73

Please sign in to comment.