Lines Matching refs:newsk
1177 struct sock *newsk = NULL; in unix_stream_connect() local
1204 newsk = unix_create1(sock_net(sk), NULL); in unix_stream_connect()
1205 if (newsk == NULL) in unix_stream_connect()
1209 skb = sock_wmalloc(newsk, 1, 0, GFP_KERNEL); in unix_stream_connect()
1284 err = security_unix_stream_connect(sk, other, newsk); in unix_stream_connect()
1293 unix_peer(newsk) = sk; in unix_stream_connect()
1294 newsk->sk_state = TCP_ESTABLISHED; in unix_stream_connect()
1295 newsk->sk_type = sk->sk_type; in unix_stream_connect()
1296 init_peercred(newsk); in unix_stream_connect()
1297 newu = unix_sk(newsk); in unix_stream_connect()
1298 RCU_INIT_POINTER(newsk->sk_wq, &newu->peer_wq); in unix_stream_connect()
1316 sock_hold(newsk); in unix_stream_connect()
1319 unix_peer(sk) = newsk; in unix_stream_connect()
1338 if (newsk) in unix_stream_connect()
1339 unix_release_sock(newsk, 0); in unix_stream_connect()