net: Add a struct net parameter to sock_create_kern
[firefly-linux-kernel-4.4.55.git] / net / socket.c
index b5f1f43ed8f486846ad66d78d1b3211579405b1a..9963a0b53a642f4ce600018606d1b8cb9982df9e 100644 (file)
@@ -1210,9 +1210,9 @@ int sock_create(int family, int type, int protocol, struct socket **res)
 }
 EXPORT_SYMBOL(sock_create);
 
-int sock_create_kern(int family, int type, int protocol, struct socket **res)
+int sock_create_kern(struct net *net, int family, int type, int protocol, struct socket **res)
 {
-       return __sock_create(&init_net, family, type, protocol, res, 1);
+       return __sock_create(net, family, type, protocol, res, 1);
 }
 EXPORT_SYMBOL(sock_create_kern);