]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: properly initialize tcp memory limits
authorJason Wang <jasowang@redhat.com>
Thu, 2 Feb 2012 00:07:00 +0000 (00:07 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Feb 2012 19:34:41 +0000 (14:34 -0500)
commit8a7f311e9bdca1f24ae020fab3eb81ecd2a1d668
treec56f3500327b081228d4c7369d39740e9bb4a0a9
parent09ea704da1d05ab4c59b2adb5a2437ebde775f5c
tcp: properly initialize tcp memory limits

Commit d1dcc6f9 tries to fix the using uninitialized value
introduced by commit 9c96f2b,  but it would make the
per-socket memory limits too small.

This patch fixes this and also remove the redundant codes
introduced in d1dcc6f9.

Signed-off-by: Jason Wang <jasowang@redhat.com>
Acked-by: Glauber Costa <glommer@parallels.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/sysctl_net_ipv4.c
net/ipv4/tcp.c