printk: guard the amount written per line by devkmsg_read()
[deliverable/linux.git] / crypto / af_alg.c
index 2bc180e02115b9d18cc08ef7df87d35af4b363c9..a8e7aa3e257bbc3c6254b82d2966b9fde3031184 100644 (file)
@@ -247,7 +247,7 @@ int af_alg_accept(struct sock *sk, struct socket *newsock)
        if (!type)
                goto unlock;
 
-       sk2 = sk_alloc(sock_net(sk), PF_ALG, GFP_KERNEL, &alg_proto);
+       sk2 = sk_alloc(sock_net(sk), PF_ALG, GFP_KERNEL, &alg_proto, 0);
        err = -ENOMEM;
        if (!sk2)
                goto unlock;
@@ -327,7 +327,7 @@ static int alg_create(struct net *net, struct socket *sock, int protocol,
                return -EPROTONOSUPPORT;
 
        err = -ENOMEM;
-       sk = sk_alloc(net, PF_ALG, GFP_KERNEL, &alg_proto);
+       sk = sk_alloc(net, PF_ALG, GFP_KERNEL, &alg_proto, kern);
        if (!sk)
                goto out;
 
This page took 0.039675 seconds and 5 git commands to generate.