diff options
author | Eric Dumazet <edumazet@google.com> | 2018-05-17 17:47:24 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-05-18 11:40:27 -0400 |
commit | cf0dd203728c20e76976b69cdf42d065c1e5cab3 (patch) | |
tree | 202b20e8cda50167d5072d484d49ce726f5fd109 | |
parent | 64a2658b58ab519dc17aa3ec5754eedcbdb68bde (diff) |
tcp: use __sock_put() instead of sock_put() in tcp_clear_xmit_timers()
Socket can not disappear under us.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | include/net/tcp.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h index 6deb540297cc..511bd0fde1dc 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h | |||
@@ -559,7 +559,7 @@ void tcp_init_xmit_timers(struct sock *); | |||
559 | static inline void tcp_clear_xmit_timers(struct sock *sk) | 559 | static inline void tcp_clear_xmit_timers(struct sock *sk) |
560 | { | 560 | { |
561 | if (hrtimer_try_to_cancel(&tcp_sk(sk)->pacing_timer) == 1) | 561 | if (hrtimer_try_to_cancel(&tcp_sk(sk)->pacing_timer) == 1) |
562 | sock_put(sk); | 562 | __sock_put(sk); |
563 | 563 | ||
564 | inet_csk_clear_xmit_timers(sk); | 564 | inet_csk_clear_xmit_timers(sk); |
565 | } | 565 | } |