提交 3eadf5f4 编写于 作者: J Johannes Berg 提交者: John W. Linville

mac80211: fix initialisation error path

The error handling in ieee80211_init() is broken when any of
the built-in rate control algorithms fail to initialise, fix
it and rename the error labels.
Signed-off-by: NJohannes Berg <johannes@sipsolutions.net>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 f0b9205c
......@@ -1344,17 +1344,17 @@ static int __init ieee80211_init(void)
ret = rc80211_simple_init();
if (ret)
goto fail;
goto out;
ret = rc80211_pid_init();
if (ret)
goto fail_simple;
goto out_cleanup_simple;
ret = ieee80211_wme_register();
if (ret) {
printk(KERN_DEBUG "ieee80211_init: failed to "
"initialize WME (err=%d)\n", ret);
goto fail_pid;
goto out_cleanup_pid;
}
ieee80211_debugfs_netdev_init();
......@@ -1362,11 +1362,11 @@ static int __init ieee80211_init(void)
return 0;
fail_pid:
rc80211_simple_exit();
fail_simple:
out_cleanup_pid:
rc80211_pid_exit();
fail:
out_cleanup_simple:
rc80211_simple_exit();
out:
return ret;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册