diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-03-20 08:22:54 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-03-20 09:09:56 -0400 |
commit | f00f188f8212fec9976394976c4fd5d4a3bc4dcf (patch) | |
tree | 12a3b8588bbc495a15fd06ced8f954988c9ec4d5 /net/wireless | |
parent | 217c15777784331336a8eb232af7e2fa180b136a (diff) |
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: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless')
-rw-r--r-- | net/wireless/core.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/wireless/core.c b/net/wireless/core.c index f382cae983ba..92e3fd44e3b0 100644 --- a/net/wireless/core.c +++ b/net/wireless/core.c | |||
@@ -1096,8 +1096,10 @@ static int __init cfg80211_init(void) | |||
1096 | goto out_fail_reg; | 1096 | goto out_fail_reg; |
1097 | 1097 | ||
1098 | cfg80211_wq = create_singlethread_workqueue("cfg80211"); | 1098 | cfg80211_wq = create_singlethread_workqueue("cfg80211"); |
1099 | if (!cfg80211_wq) | 1099 | if (!cfg80211_wq) { |
1100 | err = -ENOMEM; | ||
1100 | goto out_fail_wq; | 1101 | goto out_fail_wq; |
1102 | } | ||
1101 | 1103 | ||
1102 | return 0; | 1104 | return 0; |
1103 | 1105 | ||