patch-2.1.9 linux/net/ipv4/tcp_output.c

Next file: linux/net/ipv4/tcp_timer.c
Previous file: linux/net/ipv4/tcp_ipv4.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.8/linux/net/ipv4/tcp_output.c linux/net/ipv4/tcp_output.c
@@ -468,7 +468,7 @@
 	if (th1->urg)
 		return -1;
 
-	avail = skb->end - skb->tail;
+	avail = skb_tailroom(skb);
 
 	/*
 	 *  size of tcp payload

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov