[Devel] Re: [PATCH][NETNS] Don't memset() netns to zero manually

David Miller davem at davemloft.net
Tue Oct 9 13:02:37 PDT 2007


From: Pavel Emelyanov <xemul at openvz.org>
Date: Tue, 09 Oct 2007 15:48:19 +0400

> 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 <xemul at openvz.org>

Applied, thanks Pavel!




More information about the Devel mailing list