Commit 51c44d07 authored by David S. Miller's avatar David S. Miller

[TCP]: Fix third arg to __tcp_trim_head().

Noted by Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d8598196
...@@ -980,8 +980,10 @@ int tcp_retransmit_skb(struct sock *sk, struct sk_buff *skb) ...@@ -980,8 +980,10 @@ int tcp_retransmit_skb(struct sock *sk, struct sk_buff *skb)
if (TCP_SKB_CB(skb)->flags & TCPCB_FLAG_FIN) if (TCP_SKB_CB(skb)->flags & TCPCB_FLAG_FIN)
data_end_seq--; data_end_seq--;
if (skb->len != (data_end_seq - data_seq)) { if (skb->len > (data_end_seq - data_seq)) {
if (__tcp_trim_head(sk, skb, data_end_seq - data_seq)) u32 to_trim = skb->len - (data_end_seq - data_seq);
if (__tcp_trim_head(sk, skb, to_trim))
return -ENOMEM; return -ENOMEM;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment