From: Alexey Dobriyan Date: Wed, 15 Oct 2008 05:54:48 +0000 (-0700) Subject: netns: fix net_generic array leak X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4ef079ccc1d934c5f9966f2bfcd5dbbef8f7a0a7;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git netns: fix net_generic array leak Signed-off-by: Alexey Dobriyan Signed-off-by: David S. Miller --- diff --git a/net/core/net_namespace.c b/net/core/net_namespace.c index b0dc818a91d7..f1d07b5c1e17 100644 --- a/net/core/net_namespace.c +++ b/net/core/net_namespace.c @@ -96,7 +96,7 @@ static void net_free(struct net *net) return; } #endif - + kfree(net->gen); kmem_cache_free(net_cachep, net); }