aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_ipv4.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/tcp_ipv4.c')
-rw-r--r--net/ipv4/tcp_ipv4.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c
index f7325b25b06e..a90b4540c11e 100644
--- a/net/ipv4/tcp_ipv4.c
+++ b/net/ipv4/tcp_ipv4.c
@@ -1556,8 +1556,7 @@ bool tcp_add_backlog(struct sock *sk, struct sk_buff *skb)
1556 * It has been noticed pure SACK packets were sometimes dropped 1556 * It has been noticed pure SACK packets were sometimes dropped
1557 * (if cooked by drivers without copybreak feature). 1557 * (if cooked by drivers without copybreak feature).
1558 */ 1558 */
1559 if (!skb->data_len) 1559 skb_condense(skb);
1560 skb->truesize = SKB_TRUESIZE(skb_end_offset(skb));
1561 1560
1562 if (unlikely(sk_add_backlog(sk, skb, limit))) { 1561 if (unlikely(sk_add_backlog(sk, skb, limit))) {
1563 bh_unlock_sock(sk); 1562 bh_unlock_sock(sk);