diff options
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/af_alg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/af_alg.c b/crypto/af_alg.c index 2bc180e02115..a8e7aa3e257b 100644 --- a/crypto/af_alg.c +++ b/crypto/af_alg.c | |||
@@ -247,7 +247,7 @@ int af_alg_accept(struct sock *sk, struct socket *newsock) | |||
247 | if (!type) | 247 | if (!type) |
248 | goto unlock; | 248 | goto unlock; |
249 | 249 | ||
250 | sk2 = sk_alloc(sock_net(sk), PF_ALG, GFP_KERNEL, &alg_proto); | 250 | sk2 = sk_alloc(sock_net(sk), PF_ALG, GFP_KERNEL, &alg_proto, 0); |
251 | err = -ENOMEM; | 251 | err = -ENOMEM; |
252 | if (!sk2) | 252 | if (!sk2) |
253 | goto unlock; | 253 | goto unlock; |
@@ -327,7 +327,7 @@ static int alg_create(struct net *net, struct socket *sock, int protocol, | |||
327 | return -EPROTONOSUPPORT; | 327 | return -EPROTONOSUPPORT; |
328 | 328 | ||
329 | err = -ENOMEM; | 329 | err = -ENOMEM; |
330 | sk = sk_alloc(net, PF_ALG, GFP_KERNEL, &alg_proto); | 330 | sk = sk_alloc(net, PF_ALG, GFP_KERNEL, &alg_proto, kern); |
331 | if (!sk) | 331 | if (!sk) |
332 | goto out; | 332 | goto out; |
333 | 333 | ||