aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_input.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/tcp_input.c')
-rw-r--r--net/ipv4/tcp_input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c
index 85627f83665f..cbfe13d5f423 100644
--- a/net/ipv4/tcp_input.c
+++ b/net/ipv4/tcp_input.c
@@ -4156,7 +4156,7 @@ drop:
4156 skb1 = skb1->prev; 4156 skb1 = skb1->prev;
4157 } 4157 }
4158 } 4158 }
4159 __skb_insert(skb, skb1, skb1->next, &tp->out_of_order_queue); 4159 __skb_queue_after(&tp->out_of_order_queue, skb1, skb);
4160 4160
4161 /* And clean segments covered by new one as whole. */ 4161 /* And clean segments covered by new one as whole. */
4162 while ((skb1 = skb->next) != 4162 while ((skb1 = skb->next) !=
@@ -4254,7 +4254,7 @@ tcp_collapse(struct sock *sk, struct sk_buff_head *list,
4254 memcpy(nskb->head, skb->head, header); 4254 memcpy(nskb->head, skb->head, header);
4255 memcpy(nskb->cb, skb->cb, sizeof(skb->cb)); 4255 memcpy(nskb->cb, skb->cb, sizeof(skb->cb));
4256 TCP_SKB_CB(nskb)->seq = TCP_SKB_CB(nskb)->end_seq = start; 4256 TCP_SKB_CB(nskb)->seq = TCP_SKB_CB(nskb)->end_seq = start;
4257 __skb_insert(nskb, skb->prev, skb, list); 4257 __skb_queue_before(list, skb, nskb);
4258 skb_set_owner_r(nskb, sk); 4258 skb_set_owner_r(nskb, sk);
4259 4259
4260 /* Copy data, releasing collapsed skbs. */ 4260 /* Copy data, releasing collapsed skbs. */