Skip to content

Commit

Permalink
[TCP]: Add missing skb_header_release() call to tcp_fragment().
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
davem330 committed Jul 5, 2005
1 parent 84d3e7b commit f44b527
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions net/ipv4/tcp_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f44b527

Please sign in to comment.