Merge "net: tcp: check for NULL send head during MTU probe"

This commit is contained in:
qctecmdr 2021-06-30 20:51:42 -07:00 committed by Gerrit - the friendly Code Review server
commit 9585c2cb84

View File

@ -2071,6 +2071,9 @@ static bool tcp_can_coalesce_send_queue_head(struct sock *sk, int len)
struct sk_buff *skb, *next;
skb = tcp_send_head(sk);
if (!skb)
return false;
tcp_for_write_queue_from_safe(skb, next, sk) {
if (len <= skb->len)
break;