Commit 48dcc33e authored by Jianjun Kong's avatar Jianjun Kong Committed by David S. Miller

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: default avatarJianjun Kong <jianjun@zeuux.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent abdd5a03
...@@ -2213,7 +2213,7 @@ static int unix_net_init(struct net *net) ...@@ -2213,7 +2213,7 @@ static int unix_net_init(struct net *net)
#endif #endif
error = 0; error = 0;
out: out:
return 0; return error;
} }
static void unix_net_exit(struct net *net) static void unix_net_exit(struct net *net)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment