diff options
Diffstat (limited to 'net/ipv4/tcp.c')
-rw-r--r-- | net/ipv4/tcp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c index 631133ebb20a..aa79198fb02e 100644 --- a/net/ipv4/tcp.c +++ b/net/ipv4/tcp.c | |||
@@ -1668,12 +1668,12 @@ void tcp_set_state(struct sock *sk, int state) | |||
1668 | switch (state) { | 1668 | switch (state) { |
1669 | case TCP_ESTABLISHED: | 1669 | case TCP_ESTABLISHED: |
1670 | if (oldstate != TCP_ESTABLISHED) | 1670 | if (oldstate != TCP_ESTABLISHED) |
1671 | TCP_INC_STATS(TCP_MIB_CURRESTAB); | 1671 | TCP_INC_STATS(sock_net(sk), TCP_MIB_CURRESTAB); |
1672 | break; | 1672 | break; |
1673 | 1673 | ||
1674 | case TCP_CLOSE: | 1674 | case TCP_CLOSE: |
1675 | if (oldstate == TCP_CLOSE_WAIT || oldstate == TCP_ESTABLISHED) | 1675 | if (oldstate == TCP_CLOSE_WAIT || oldstate == TCP_ESTABLISHED) |
1676 | TCP_INC_STATS(TCP_MIB_ESTABRESETS); | 1676 | TCP_INC_STATS(sock_net(sk), TCP_MIB_ESTABRESETS); |
1677 | 1677 | ||
1678 | sk->sk_prot->unhash(sk); | 1678 | sk->sk_prot->unhash(sk); |
1679 | if (inet_csk(sk)->icsk_bind_hash && | 1679 | if (inet_csk(sk)->icsk_bind_hash && |