aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/af_alg.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/af_alg.c')
-rw-r--r--crypto/af_alg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/af_alg.c b/crypto/af_alg.c
index f22cc56fd1b3..5ad0d5354535 100644
--- a/crypto/af_alg.c
+++ b/crypto/af_alg.c
@@ -244,7 +244,7 @@ int af_alg_accept(struct sock *sk, struct socket *newsock)
244 if (!type) 244 if (!type)
245 goto unlock; 245 goto unlock;
246 246
247 sk2 = sk_alloc(sock_net(sk), PF_ALG, GFP_KERNEL, &alg_proto); 247 sk2 = sk_alloc(sock_net(sk), PF_ALG, GFP_KERNEL, &alg_proto, 0);
248 err = -ENOMEM; 248 err = -ENOMEM;
249 if (!sk2) 249 if (!sk2)
250 goto unlock; 250 goto unlock;
@@ -324,7 +324,7 @@ static int alg_create(struct net *net, struct socket *sock, int protocol,
324 return -EPROTONOSUPPORT; 324 return -EPROTONOSUPPORT;
325 325
326 err = -ENOMEM; 326 err = -ENOMEM;
327 sk = sk_alloc(net, PF_ALG, GFP_KERNEL, &alg_proto); 327 sk = sk_alloc(net, PF_ALG, GFP_KERNEL, &alg_proto, kern);
328 if (!sk) 328 if (!sk)
329 goto out; 329 goto out;
330 330