net: Pass kern from net_proto_family.create to sk_alloc
In preparation for changing how struct net is refcounted on kernel sockets pass the knowledge that we are creating a kernel socket from sock_create_kern through to sk_alloc. Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Esse commit está contido em:

commit de
David S. Miller

pai
eeb1bd5c40
commit
11aa9c28b4
@@ -118,7 +118,7 @@ static int pppox_create(struct net *net, struct socket *sock, int protocol,
|
||||
!try_module_get(pppox_protos[protocol]->owner))
|
||||
goto out;
|
||||
|
||||
rc = pppox_protos[protocol]->create(net, sock);
|
||||
rc = pppox_protos[protocol]->create(net, sock, kern);
|
||||
|
||||
module_put(pppox_protos[protocol]->owner);
|
||||
out:
|
||||
|
Referência em uma nova issue
Block a user