Skip to content

Commit

Permalink
af_unix: netns: fix problem of return value
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jianjun Kong authored and David S. Miller committed Nov 2, 2008
1 parent abdd5a0 commit 48dcc33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/unix/af_unix.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 48dcc33

Please sign in to comment.