]> err.no Git - linux-2.6/commitdiff
[TCP]: Add missing skb_header_release() call to tcp_fragment().
authorDavid S. Miller <davem@davemloft.net>
Tue, 5 Jul 2005 22:18:34 +0000 (15:18 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Jul 2005 22:18:34 +0000 (15:18 -0700)
When we add any new packet to the TCP socket write queue,
we must call skb_header_release() on it in order for the
TSO sharing checks in the drivers to work.

Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_output.c

index 362b811a2460c9e5ac85c696bdec5625d0eb15f3..5e63ed09658d39f6c8fe95d99a3498ad518f0ad1 100644 (file)
@@ -655,6 +655,7 @@ static int tcp_fragment(struct sock *sk, struct sk_buff *skb, u32 len)
        }
 
        /* Link BUFF into the send queue. */
+       skb_header_release(buff);
        __skb_append(skb, buff);
 
        return 0;