Skip to contentSkip to conversation

reference count clean up continued - IPv6

PATCH New Nivedita Singhvi 1 participant 1 message Mar 31, 2004

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 reference count clean up continued - IPv6

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

net/ipv6/tcp_ipv6.c +1 -1
diff -urN linux-2.4.25/net/ipv6/tcp_ipv6.c linux-2.4.25mc6/net/ipv6/tcp_ipv6.c
@@ -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;
 	}