af_unix: netns: fix problem of return value
[h-e-n] / net / unix / af_unix.c
index dc504d3..4d3c607 100644 (file)
@@ -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)