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

Commit f00f188f authored by Wei Yongjun's avatar Wei Yongjun Committed by Johannes Berg
Browse files

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: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 217c1577
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1096,8 +1096,10 @@ static int __init cfg80211_init(void)
		goto out_fail_reg;

	cfg80211_wq = create_singlethread_workqueue("cfg80211");
	if (!cfg80211_wq)
	if (!cfg80211_wq) {
		err = -ENOMEM;
		goto out_fail_wq;
	}

	return 0;