diff options
Diffstat (limited to 'net/ipv4/tcp.c')
-rw-r--r-- | net/ipv4/tcp.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c index 85f08291e928..9e0e45c37806 100644 --- a/net/ipv4/tcp.c +++ b/net/ipv4/tcp.c | |||
@@ -1871,7 +1871,8 @@ adjudge_to_death: | |||
1871 | if (tp->linger2 < 0) { | 1871 | if (tp->linger2 < 0) { |
1872 | tcp_set_state(sk, TCP_CLOSE); | 1872 | tcp_set_state(sk, TCP_CLOSE); |
1873 | tcp_send_active_reset(sk, GFP_ATOMIC); | 1873 | tcp_send_active_reset(sk, GFP_ATOMIC); |
1874 | NET_INC_STATS_BH(LINUX_MIB_TCPABORTONLINGER); | 1874 | NET_INC_STATS_BH(sock_net(sk), |
1875 | LINUX_MIB_TCPABORTONLINGER); | ||
1875 | } else { | 1876 | } else { |
1876 | const int tmo = tcp_fin_time(sk); | 1877 | const int tmo = tcp_fin_time(sk); |
1877 | 1878 | ||
@@ -1893,7 +1894,8 @@ adjudge_to_death: | |||
1893 | "sockets\n"); | 1894 | "sockets\n"); |
1894 | tcp_set_state(sk, TCP_CLOSE); | 1895 | tcp_set_state(sk, TCP_CLOSE); |
1895 | tcp_send_active_reset(sk, GFP_ATOMIC); | 1896 | tcp_send_active_reset(sk, GFP_ATOMIC); |
1896 | NET_INC_STATS_BH(LINUX_MIB_TCPABORTONMEMORY); | 1897 | NET_INC_STATS_BH(sock_net(sk), |
1898 | LINUX_MIB_TCPABORTONMEMORY); | ||
1897 | } | 1899 | } |
1898 | } | 1900 | } |
1899 | 1901 | ||