Merge 4.4.184 into android-4.4-n
Changes in 4.4.184
tcp: refine memory limit test in tcp_fragment()
Linux 4.4.184
Change-Id: I5005dee97f3b0162ff32bd38d11ff1db1fbcf20e
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
diff --git a/Makefile b/Makefile
index 4ac762e..f098274 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
VERSION = 4
PATCHLEVEL = 4
-SUBLEVEL = 183
+SUBLEVEL = 184
EXTRAVERSION =
NAME = Blurry Fish Butt
diff --git a/net/ipv4/tcp_output.c b/net/ipv4/tcp_output.c
index 6f7303d..c4f7902 100644
--- a/net/ipv4/tcp_output.c
+++ b/net/ipv4/tcp_output.c
@@ -1161,7 +1161,7 @@
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 + 0x20000)) {
NET_INC_STATS(sock_net(sk), LINUX_MIB_TCPWQUEUETOOBIG);
return -ENOMEM;
}