aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/tcp.c')
-rw-r--r--net/ipv4/tcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c
index aa79198fb02e..f742f84026b5 100644
--- a/net/ipv4/tcp.c
+++ b/net/ipv4/tcp.c
@@ -2663,7 +2663,7 @@ EXPORT_SYMBOL(__tcp_put_md5sig_pool);
2663void tcp_done(struct sock *sk) 2663void tcp_done(struct sock *sk)
2664{ 2664{
2665 if(sk->sk_state == TCP_SYN_SENT || sk->sk_state == TCP_SYN_RECV) 2665 if(sk->sk_state == TCP_SYN_SENT || sk->sk_state == TCP_SYN_RECV)
2666 TCP_INC_STATS_BH(TCP_MIB_ATTEMPTFAILS); 2666 TCP_INC_STATS_BH(sock_net(sk), TCP_MIB_ATTEMPTFAILS);
2667 2667
2668 tcp_set_state(sk, TCP_CLOSE); 2668 tcp_set_state(sk, TCP_CLOSE);
2669 tcp_clear_xmit_timers(sk); 2669 tcp_clear_xmit_timers(sk);