mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-05 19:31:57 -04:00
Merge "net: tcp: check for NULL send head during MTU probe"
This commit is contained in:
commit
9585c2cb84
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue