projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
217c157
)
cfg80211: fix error return code in cfg80211_init()
author
Wei Yongjun
<yongjun_wei@trendmicro.com.cn>
Wed, 20 Mar 2013 12:22:54 +0000
(20:22 +0800)
committer
Johannes Berg
<johannes.berg@intel.com>
Wed, 20 Mar 2013 13:09:56 +0000
(14:09 +0100)
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>
net/wireless/core.c
patch
|
blob
|
blame
|
history
diff --git
a/net/wireless/core.c
b/net/wireless/core.c
index f382cae983ba8a5b9379e871ba8de43ff0d08650..92e3fd44e3b0a083c3004c42fe9d28e38dae717f 100644
(file)
--- a/
net/wireless/core.c
+++ b/
net/wireless/core.c
@@
-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;