* [PATCH 2.4] reference count clean up continued - IPv6
@ 2004-03-31 7:00 Nivedita Singhvi
0 siblings, 0 replies; only message in thread
From: Nivedita Singhvi @ 2004-03-31 7:00 UTC (permalink / raw)
To: David Miller; +Cc: netdev
Continuing the reference count clean up, this time
in tcp_v6_rcv(). We should not be doing a sock_put()
on a socket in TIMEWAIT state.
Applies to 2.4.25+.
thanks,
Nivedita
diff -urN linux-2.4.25/net/ipv6/tcp_ipv6.c linux-2.4.25mc6/net/ipv6/tcp_ipv6.c
--- linux-2.4.25/net/ipv6/tcp_ipv6.c 2003-11-28 10:26:21.000000000 -0800
+++ linux-2.4.25mc6/net/ipv6/tcp_ipv6.c 2004-03-30 02:07:05.000000000 -0800
@@ -1647,7 +1647,7 @@
do_time_wait:
if (skb->len < (th->doff<<2) || tcp_checksum_complete(skb)) {
TCP_INC_STATS_BH(TcpInErrs);
- sock_put(sk);
+ tcp_tw_put((struct tcp_tw_bucket *) sk);
goto discard_it;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-03-31 7:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-31 7:00 [PATCH 2.4] reference count clean up continued - IPv6 Nivedita Singhvi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).