LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH/2] nets: fix problem of return value
@ 2008-11-01 10:18 Jianjun Kong
2008-11-02 4:37 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Jianjun Kong @ 2008-11-01 10:18 UTC (permalink / raw)
To: David S. Miller; +Cc: netdev, Linux-Kernel-Mailing-List
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>
---
net/unix/af_unix.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c
index 0b80634..7d2e4f8 100644
--- a/net/unix/af_unix.c
+++ b/net/unix/af_unix.c
@@ -2212,7 +2212,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)
--
1.5.6.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH/2] nets: fix problem of return value
2008-11-01 10:18 [PATCH/2] nets: fix problem of return value Jianjun Kong
@ 2008-11-02 4:37 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2008-11-02 4:37 UTC (permalink / raw)
To: jianjun; +Cc: netdev, linux-kernel
From: Jianjun Kong <jianjun@zeuux.org>
Date: Sat, 1 Nov 2008 18:18:35 +0800
> 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>
Applied, thank you.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-11-02 4:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-01 10:18 [PATCH/2] nets: fix problem of return value Jianjun Kong
2008-11-02 4:37 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).