Lines Matching refs:newsk
779 struct sock *newsk = NULL; in pep_sock_accept() local
841 newsk = pep_find_pipe(&pn->hlist, &dst, pipe_handle); in pep_sock_accept()
842 if (unlikely(newsk)) { in pep_sock_accept()
843 __sock_put(newsk); in pep_sock_accept()
844 newsk = NULL; in pep_sock_accept()
850 newsk = sk_alloc(sock_net(sk), PF_PHONET, GFP_KERNEL, sk->sk_prot); in pep_sock_accept()
851 if (!newsk) { in pep_sock_accept()
857 sock_init_data(NULL, newsk); in pep_sock_accept()
858 newsk->sk_state = TCP_SYN_RECV; in pep_sock_accept()
859 newsk->sk_backlog_rcv = pipe_do_rcv; in pep_sock_accept()
860 newsk->sk_protocol = sk->sk_protocol; in pep_sock_accept()
861 newsk->sk_destruct = pipe_destruct; in pep_sock_accept()
863 newpn = pep_sk(newsk); in pep_sock_accept()
881 err = pep_accept_conn(newsk, skb); in pep_sock_accept()
883 sock_put(newsk); in pep_sock_accept()
884 newsk = NULL; in pep_sock_accept()
887 sk_add_node(newsk, &pn->hlist); in pep_sock_accept()
892 return newsk; in pep_sock_accept()