[TCP]: Compute in_sacked properly when we split up a TSO frame.
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 15 Sep 2005 03:50:35 +0000 (20:50 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 15 Sep 2005 03:50:35 +0000 (20:50 -0700)
The problem is that the SACK fragmenting code may incorrectly call
tcp_fragment() with a length larger than the skb->len.  This happens
when the skb on the transmit queue completely falls to the LHS of the
SACK.

And add a BUG() check to tcp_fragment() so we can spot this kind of
error more quickly in the future.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found