Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9585c2cb authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

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

parents d9d62284 d2bdf738
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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;