]> 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)
commit94188791704427b8c4c139464c3fd0b58e02f766
treec56f3500327b081228d4c7369d39740e9bb4a0a9
parentdb878a50e7f00a243373960c946beb7e6270d302
tcp: properly initialize tcp memory limits

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

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

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