From: Pavel Emelyanov Date: Tue, 9 Oct 2007 20:02:17 +0000 (-0700) Subject: [NETNS]: Don't memset() netns to zero manually X-Git-Tag: v2.6.24-rc1~1454^2~128 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32f0c4cbe495d121c09ed14d9c84f9e1b9574415;p=pandora-kernel.git [NETNS]: Don't memset() netns to zero manually The newly created net namespace is set to 0 with memset() in setup_net(). The setup_net() is also called for the init_net_ns(), which is zeroed naturally as a global var. So remove this memset and allocate new nets with the kmem_cache_zalloc(). Signed-off-by: Pavel Emelyanov Signed-off-by: David S. Miller --- Reading git-diff-tree failed