Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)