diff options
author | Jianjun Kong <jianjun@zeuux.org> | 2008-11-01 21:37:27 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-12-13 15:29:11 -0800 |
commit | 0a2093552fba5f5e06bd81e413f62f60880dd182 (patch) | |
tree | 6727c2c07206378830fad334a70df69cfbcf8324 /net/unix | |
parent | fa14e851ddc9049b39271980e2d24734c0c477e3 (diff) |
af_unix: netns: fix problem of return value
[ 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>
Diffstat (limited to 'net/unix')
-rw-r--r-- | 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 b0785ef0a47..8e66fe0d8cd 100644 --- a/net/unix/af_unix.c +++ b/net/unix/af_unix.c @@ -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) |