diff options
-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 98835afb8d8a..c2aa4688dae6 100644 --- a/net/ipv4/tcp_output.c +++ b/net/ipv4/tcp_output.c | |||
@@ -1342,7 +1342,6 @@ static int tcp_mtu_probe(struct sock *sk) | |||
1342 | sk_charge_skb(sk, nskb); | 1342 | sk_charge_skb(sk, nskb); |
1343 | 1343 | ||
1344 | skb = tcp_send_head(sk); | 1344 | skb = tcp_send_head(sk); |
1345 | tcp_insert_write_queue_before(nskb, skb, sk); | ||
1346 | 1345 | ||
1347 | TCP_SKB_CB(nskb)->seq = TCP_SKB_CB(skb)->seq; | 1346 | TCP_SKB_CB(nskb)->seq = TCP_SKB_CB(skb)->seq; |
1348 | TCP_SKB_CB(nskb)->end_seq = TCP_SKB_CB(skb)->seq + probe_size; | 1347 | TCP_SKB_CB(nskb)->end_seq = TCP_SKB_CB(skb)->seq + probe_size; |
@@ -1351,6 +1350,8 @@ static int tcp_mtu_probe(struct sock *sk) | |||
1351 | nskb->csum = 0; | 1350 | nskb->csum = 0; |
1352 | nskb->ip_summed = skb->ip_summed; | 1351 | nskb->ip_summed = skb->ip_summed; |
1353 | 1352 | ||
1353 | tcp_insert_write_queue_before(nskb, skb, sk); | ||
1354 | |||
1354 | len = 0; | 1355 | len = 0; |
1355 | while (len < probe_size) { | 1356 | while (len < probe_size) { |
1356 | next = tcp_write_queue_next(sk, skb); | 1357 | next = tcp_write_queue_next(sk, skb); |