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>
此提交包含在:
@@ -167,7 +167,7 @@ lookup_protocol:
|
||||
WARN_ON(!answer_prot->slab);
|
||||
|
||||
err = -ENOBUFS;
|
||||
sk = sk_alloc(net, PF_INET6, GFP_KERNEL, answer_prot);
|
||||
sk = sk_alloc(net, PF_INET6, GFP_KERNEL, answer_prot, kern);
|
||||
if (!sk)
|
||||
goto out;
|
||||
|
||||
|
新增問題並參考
封鎖使用者