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

Commit b70220c3 authored by Ivaylo Georgiev's avatar Ivaylo Georgiev
Browse files

Merge android-4.19.55 (65f49f03) into msm-4.19



* refs/heads/tmp-65f49f03:
  Linux 4.19.55
  tcp: refine memory limit test in tcp_fragment()

Change-Id: Ide0975796d1b28f44031eeab6af1abb19c0e60ee
Signed-off-by: default avatarIvaylo Georgiev <irgeorgiev@codeaurora.org>
parents 5c7f2dd7 65f49f03
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0
VERSION = 4
PATCHLEVEL = 19
SUBLEVEL = 54
SUBLEVEL = 55
EXTRAVERSION =
NAME = "People's Front"

+2 −1
Original line number Diff line number Diff line
@@ -1282,7 +1282,8 @@ int tcp_fragment(struct sock *sk, enum tcp_queue tcp_queue,
	if (nsize < 0)
		nsize = 0;

	if (unlikely((sk->sk_wmem_queued >> 1) > sk->sk_sndbuf)) {
	if (unlikely((sk->sk_wmem_queued >> 1) > sk->sk_sndbuf &&
		     tcp_queue != TCP_FRAG_IN_WRITE_QUEUE)) {
		NET_INC_STATS(sock_net(sk), LINUX_MIB_TCPWQUEUETOOBIG);
		return -ENOMEM;
	}