]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
af_unix: netns: fix problem of return value
authorJianjun Kong <jianjun@zeuux.org>
Sun, 2 Nov 2008 04:37:27 +0000 (21:37 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 13 Dec 2008 23:29:11 +0000 (15:29 -0800)
[ Upstream commit 48dcc33e5e11de0f76b65b113988dbc930d17395 ]

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

index b0785ef0a47595a4dca56969f5d5cc8aee5f9804..8e66fe0d8cdd790f9a97f9ac5a4cb69293b9dd5c 100644 (file)
@@ -2230,7 +2230,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)