Lines Matching refs:newsk
554 struct sock *newsk = sk_alloc(sock_net(sk), PF_INET, GFP_KERNEL, in sctp_v4_create_accept_sk() local
558 if (!newsk) in sctp_v4_create_accept_sk()
561 sock_init_data(NULL, newsk); in sctp_v4_create_accept_sk()
563 sctp_copy_sock(newsk, sk, asoc); in sctp_v4_create_accept_sk()
564 sock_reset_flag(newsk, SOCK_ZAPPED); in sctp_v4_create_accept_sk()
566 newinet = inet_sk(newsk); in sctp_v4_create_accept_sk()
570 sk_refcnt_debug_inc(newsk); in sctp_v4_create_accept_sk()
572 if (newsk->sk_prot->init(newsk)) { in sctp_v4_create_accept_sk()
573 sk_common_release(newsk); in sctp_v4_create_accept_sk()
574 newsk = NULL; in sctp_v4_create_accept_sk()
578 return newsk; in sctp_v4_create_accept_sk()