From: Eric Dumazet Date: Thu, 17 May 2018 21:47:24 +0000 (-0700) Subject: tcp: use __sock_put() instead of sock_put() in tcp_clear_xmit_timers() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=cf0dd203728c20e76976b69cdf42d065c1e5cab3;p=linux.git tcp: use __sock_put() instead of sock_put() in tcp_clear_xmit_timers() Socket can not disappear under us. Signed-off-by: Eric Dumazet Acked-by: Neal Cardwell Signed-off-by: David S. Miller --- diff --git a/include/net/tcp.h b/include/net/tcp.h index 6deb540297cca..511bd0fde1dc1 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h @@ -559,7 +559,7 @@ void tcp_init_xmit_timers(struct sock *); static inline void tcp_clear_xmit_timers(struct sock *sk) { if (hrtimer_try_to_cancel(&tcp_sk(sk)->pacing_timer) == 1) - sock_put(sk); + __sock_put(sk); inet_csk_clear_xmit_timers(sk); }