diff options
Diffstat (limited to 'net/ipv4/tcp_output.c')
-rw-r--r-- | net/ipv4/tcp_output.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c index 4f8a8a17891a..e5130a7fe181 100644 --- a/net/ipv4/tcp_output.c +++ b/net/ipv4/tcp_output.c | |||
@@ -1321,12 +1321,7 @@ static int tcp_mtu_probe(struct sock *sk) | |||
1321 | } | 1321 | } |
1322 | 1322 | ||
1323 | /* Have enough data in the send queue to probe? */ | 1323 | /* Have enough data in the send queue to probe? */ |
1324 | len = 0; | 1324 | if (tp->write_seq - tp->snd_nxt < size_needed) |
1325 | if ((skb = tcp_send_head(sk)) == NULL) | ||
1326 | return -1; | ||
1327 | while ((len += skb->len) < size_needed && !tcp_skb_is_last(sk, skb)) | ||
1328 | skb = tcp_write_queue_next(sk, skb); | ||
1329 | if (len < size_needed) | ||
1330 | return -1; | 1325 | return -1; |
1331 | 1326 | ||
1332 | if (tp->snd_wnd < size_needed) | 1327 | if (tp->snd_wnd < size_needed) |