diff options
Diffstat (limited to 'net/ipv4/tcp_output.c')
| -rw-r--r-- | net/ipv4/tcp_output.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c index 364784a91939..7ac6423117ad 100644 --- a/net/ipv4/tcp_output.c +++ b/net/ipv4/tcp_output.c | |||
| @@ -1096,6 +1096,7 @@ static void __pskb_trim_head(struct sk_buff *skb, int len) | |||
| 1096 | eat = min_t(int, len, skb_headlen(skb)); | 1096 | eat = min_t(int, len, skb_headlen(skb)); |
| 1097 | if (eat) { | 1097 | if (eat) { |
| 1098 | __skb_pull(skb, eat); | 1098 | __skb_pull(skb, eat); |
| 1099 | skb->avail_size -= eat; | ||
| 1099 | len -= eat; | 1100 | len -= eat; |
| 1100 | if (!len) | 1101 | if (!len) |
| 1101 | return; | 1102 | return; |
| @@ -2060,7 +2061,7 @@ static void tcp_retrans_try_collapse(struct sock *sk, struct sk_buff *to, | |||
| 2060 | /* Punt if not enough space exists in the first SKB for | 2061 | /* Punt if not enough space exists in the first SKB for |
| 2061 | * the data in the second | 2062 | * the data in the second |
| 2062 | */ | 2063 | */ |
| 2063 | if (skb->len > skb_tailroom(to)) | 2064 | if (skb->len > skb_availroom(to)) |
| 2064 | break; | 2065 | break; |
| 2065 | 2066 | ||
| 2066 | if (after(TCP_SKB_CB(skb)->end_seq, tcp_wnd_end(tp))) | 2067 | if (after(TCP_SKB_CB(skb)->end_seq, tcp_wnd_end(tp))) |
