Lines Matching refs:sk2
415 struct sock *sk2; in af_alg_accept() local
426 sk2 = sk_alloc(sock_net(sk), PF_ALG, GFP_KERNEL, &alg_proto, arg->kern); in af_alg_accept()
428 if (!sk2) in af_alg_accept()
431 sock_init_data(newsock, sk2); in af_alg_accept()
432 security_sock_graft(sk2, newsock); in af_alg_accept()
433 security_sk_clone(sk, sk2); in af_alg_accept()
440 err = type->accept(ask->private, sk2); in af_alg_accept()
444 err = type->accept_nokey(ask->private, sk2); in af_alg_accept()
453 atomic_set(&alg_sk(sk2)->nokey_refcnt, 1); in af_alg_accept()
455 alg_sk(sk2)->parent = sk; in af_alg_accept()
456 alg_sk(sk2)->type = type; in af_alg_accept()