diff options
author | David S. Miller <davem@davemloft.net> | 2005-07-05 18:18:34 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-07-05 18:18:34 -0400 |
commit | f44b527177d57ed382bfd93e1b55232465f6d058 (patch) | |
tree | cf10d1ed522c4aeb8c1cc523dd0591d7547bfd1f /net | |
parent | 84d3e7b9573291a1ea845bdd51b74bb484597661 (diff) |
[TCP]: Add missing skb_header_release() call to tcp_fragment().
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>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv4/tcp_output.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c index 362b811a2460..5e63ed09658d 100644 --- a/net/ipv4/tcp_output.c +++ b/net/ipv4/tcp_output.c | |||
@@ -655,6 +655,7 @@ static int tcp_fragment(struct sock *sk, struct sk_buff *skb, u32 len) | |||
655 | } | 655 | } |
656 | 656 | ||
657 | /* Link BUFF into the send queue. */ | 657 | /* Link BUFF into the send queue. */ |
658 | skb_header_release(buff); | ||
658 | __skb_append(skb, buff); | 659 | __skb_append(skb, buff); |
659 | 660 | ||
660 | return 0; | 661 | return 0; |