Merge android-4.4.184 (282d84a
) into msm-4.4
* refs/heads/tmp-282d84a Linux 4.4.184 tcp: refine memory limit test in tcp_fragment() Change-Id: I99ffacfb623b2cc5acb0401a3dfc08bae6461810 Signed-off-by: Srinivasarao P <spathi@codeaurora.org>
This commit is contained in:
commit
2958c456e6
2 changed files with 2 additions and 2 deletions
2
Makefile
2
Makefile
|
@ -1,6 +1,6 @@
|
|||
VERSION = 4
|
||||
PATCHLEVEL = 4
|
||||
SUBLEVEL = 183
|
||||
SUBLEVEL = 184
|
||||
EXTRAVERSION =
|
||||
NAME = Blurry Fish Butt
|
||||
|
||||
|
|
|
@ -1161,7 +1161,7 @@ int tcp_fragment(struct sock *sk, struct sk_buff *skb, u32 len,
|
|||
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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue