projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64a2658
)
tcp: use __sock_put() instead of sock_put() in tcp_clear_xmit_timers()
author
Eric Dumazet
<edumazet@google.com>
Thu, 17 May 2018 21:47:24 +0000
(14:47 -0700)
committer
David S. Miller
<davem@davemloft.net>
Fri, 18 May 2018 15:40:27 +0000
(11:40 -0400)
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>
include/net/tcp.h
patch
|
blob
|
history
diff --git
a/include/net/tcp.h
b/include/net/tcp.h
index 6deb540297ccaa1f05ce633efe313d1ca2c15dd9..511bd0fde1dc1dd842598d083905b0425bcb05f8 100644
(file)
--- 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);
}