From: Jianjun Kong Date: Sun, 2 Nov 2008 04:37:27 +0000 (-0700) Subject: af_unix: netns: fix problem of return value X-Git-Tag: v2.6.28-rc3~3^2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=48dcc33e5e11de0f76b65b113988dbc930d17395;p=linux-2.6-omap-h63xx.git af_unix: netns: fix problem of return value 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 Signed-off-by: David S. Miller --- diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c index dc504d308ec..4d3c6071b9a 100644 --- 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)