mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 06:03:36 -04: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
|
|
@ -480,8 +480,8 @@ static int ceph_tcp_connect(struct ceph_connection *con)
|
|||
int ret;
|
||||
|
||||
BUG_ON(con->sock);
|
||||
ret = sock_create_kern(con->peer_addr.in_addr.ss_family, SOCK_STREAM,
|
||||
IPPROTO_TCP, &sock);
|
||||
ret = sock_create_kern(&init_net, con->peer_addr.in_addr.ss_family,
|
||||
SOCK_STREAM, IPPROTO_TCP, &sock);
|
||||
if (ret)
|
||||
return ret;
|
||||
sock->sk->sk_allocation = GFP_NOFS;
|
||||
|
|
|
|||
Loading…
Reference in a new issue