diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/ipv4/tcp_output.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c index b871db6adc55..44df1db726a3 100644 --- a/net/ipv4/tcp_output.c +++ b/net/ipv4/tcp_output.c | |||
@@ -551,7 +551,9 @@ int tcp_fragment(struct sock *sk, struct sk_buff *skb, u32 len, unsigned int mss | |||
551 | buff = sk_stream_alloc_skb(sk, nsize, GFP_ATOMIC); | 551 | buff = sk_stream_alloc_skb(sk, nsize, GFP_ATOMIC); |
552 | if (buff == NULL) | 552 | if (buff == NULL) |
553 | return -ENOMEM; /* We'll just try again later. */ | 553 | return -ENOMEM; /* We'll just try again later. */ |
554 | sk_charge_skb(sk, buff); | 554 | |
555 | buff->truesize = skb->len - len; | ||
556 | skb->truesize -= buff->truesize; | ||
555 | 557 | ||
556 | /* Correct the sequence numbers. */ | 558 | /* Correct the sequence numbers. */ |
557 | TCP_SKB_CB(buff)->seq = TCP_SKB_CB(skb)->seq + len; | 559 | TCP_SKB_CB(buff)->seq = TCP_SKB_CB(skb)->seq + len; |