projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
abdd5a0
)
af_unix: netns: fix problem of return value
author
Jianjun Kong
<jianjun@zeuux.org>
Sun, 2 Nov 2008 04:37:27 +0000
(21:37 -0700)
committer
David S. Miller
<davem@davemloft.net>
Sun, 2 Nov 2008 04:37:27 +0000
(21:37 -0700)
fix problem of return value
net/unix/af_unix.c: unix_net_init()
when error appears, it should return 'error', not always return 0.
Signed-off-by: Jianjun Kong <jianjun@zeuux.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/unix/af_unix.c
patch
|
blob
|
blame
|
history
diff --git
a/net/unix/af_unix.c
b/net/unix/af_unix.c
index dc504d308ec003b714df60497ca813b017d73112..4d3c6071b9a47102212bcc65afa55c640e7bb5b8 100644
(file)
--- a/
net/unix/af_unix.c
+++ b/
net/unix/af_unix.c
@@
-2213,7
+2213,7
@@
static int unix_net_init(struct net *net)
#endif
error = 0;
out:
- return
0
;
+ return
error
;
}
static void unix_net_exit(struct net *net)