mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
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: Jianjun Kong <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
abdd5a0301
commit
48dcc33e5e
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue