]> git.karo-electronics.de Git - linux-beck.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)
commitc43b874d5d714f271b80d4c3f49e05d0cbf51ed2
treec56f3500327b081228d4c7369d39740e9bb4a0a9
parent786f528119722f564a22ad953411374e06116333
tcp: properly initialize tcp memory limits

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

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

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