From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Dumazet Subject: [PATCH net-next 1/4] tcp: use __sock_put() instead of sock_put() in tcp_clear_xmit_timers() Date: Thu, 17 May 2018 05:12:10 -0700 Message-ID: <20180517121213.43559-2-edumazet@google.com> References: <20180517121213.43559-1-edumazet@google.com> Cc: netdev , =?UTF-8?q?Toke=20H=C3=B8iland-J=C3=B8rgensen?= , Neal Cardwell , Yuchung Cheng , Soheil Hassas Yeganeh , Eric Dumazet , Eric Dumazet To: "David S . Miller" Return-path: Received: from mail-pl0-f65.google.com ([209.85.160.65]:39043 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750779AbeEQMMY (ORCPT ); Thu, 17 May 2018 08:12:24 -0400 Received: by mail-pl0-f65.google.com with SMTP id c19-v6so2438248pls.6 for ; Thu, 17 May 2018 05:12:24 -0700 (PDT) In-Reply-To: <20180517121213.43559-1-edumazet@google.com> Sender: netdev-owner@vger.kernel.org List-ID: Socket can not disappear under us. Signed-off-by: Eric Dumazet --- include/net/tcp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/net/tcp.h b/include/net/tcp.h index a08eab58ef7001b3e141e3722fd8a3875e5c5d7d..6ffc8bd894876ad23407f5ec4994350139af85e7 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h @@ -558,7 +558,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); } -- 2.17.0.441.gb46fe60e1d-goog