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:

committed by
David S. Miller

parent
140e807da1
commit
eeb1bd5c40
@@ -85,7 +85,7 @@ int afs_open_socket(void)
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
ret = sock_create_kern(AF_RXRPC, SOCK_DGRAM, PF_INET, &socket);
|
||||
ret = sock_create_kern(&init_net, AF_RXRPC, SOCK_DGRAM, PF_INET, &socket);
|
||||
if (ret < 0) {
|
||||
destroy_workqueue(afs_async_calls);
|
||||
_leave(" = %d [socket]", ret);
|
||||
|
Reference in New Issue
Block a user