diff options
Diffstat (limited to 'net/core/sock.c')
-rw-r--r-- | net/core/sock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/core/sock.c b/net/core/sock.c index 3879bf65897e..2c0ba52e5303 100644 --- a/net/core/sock.c +++ b/net/core/sock.c | |||
@@ -1066,7 +1066,7 @@ struct sock *sk_clone(const struct sock *sk, const gfp_t priority) | |||
1066 | * to be taken into account in all callers. -acme | 1066 | * to be taken into account in all callers. -acme |
1067 | */ | 1067 | */ |
1068 | sk_refcnt_debug_inc(newsk); | 1068 | sk_refcnt_debug_inc(newsk); |
1069 | newsk->sk_socket = NULL; | 1069 | sk_set_socket(newsk, NULL); |
1070 | newsk->sk_sleep = NULL; | 1070 | newsk->sk_sleep = NULL; |
1071 | 1071 | ||
1072 | if (newsk->sk_prot->sockets_allocated) | 1072 | if (newsk->sk_prot->sockets_allocated) |
@@ -1702,7 +1702,7 @@ void sock_init_data(struct socket *sock, struct sock *sk) | |||
1702 | sk->sk_rcvbuf = sysctl_rmem_default; | 1702 | sk->sk_rcvbuf = sysctl_rmem_default; |
1703 | sk->sk_sndbuf = sysctl_wmem_default; | 1703 | sk->sk_sndbuf = sysctl_wmem_default; |
1704 | sk->sk_state = TCP_CLOSE; | 1704 | sk->sk_state = TCP_CLOSE; |
1705 | sk->sk_socket = sock; | 1705 | sk_set_socket(sk, sock); |
1706 | 1706 | ||
1707 | sock_set_flag(sk, SOCK_ZAPPED); | 1707 | sock_set_flag(sk, SOCK_ZAPPED); |
1708 | 1708 | ||