mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-26 08:31:13 +00:00
net: Add a struct net parameter to sock_create_kern
This is long overdue, and is part of cleaning up how we allocate kernel sockets that don't reference count struct net. Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
140e807da1
commit
eeb1bd5c40
13 changed files with 26 additions and 26 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue