提交 f00f188f 编写于 作者: W Wei Yongjun 提交者: Johannes Berg

cfg80211: fix error return code in cfg80211_init()

Fix to return a negative error code from the error handling
case instead of 0, as returned elsewhere in this function.
Signed-off-by: NWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
上级 217c1577
...@@ -1096,8 +1096,10 @@ static int __init cfg80211_init(void) ...@@ -1096,8 +1096,10 @@ static int __init cfg80211_init(void)
goto out_fail_reg; goto out_fail_reg;
cfg80211_wq = create_singlethread_workqueue("cfg80211"); cfg80211_wq = create_singlethread_workqueue("cfg80211");
if (!cfg80211_wq) if (!cfg80211_wq) {
err = -ENOMEM;
goto out_fail_wq; goto out_fail_wq;
}
return 0; return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册