From patchwork Wed Oct 15 04:15:22 2008 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Dobriyan X-Patchwork-Id: 4555 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by ozlabs.org (Postfix) with ESMTP id CA306DDDFD for ; Wed, 15 Oct 2008 15:12:31 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751001AbYJOEM1 (ORCPT ); Wed, 15 Oct 2008 00:12:27 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750853AbYJOEM1 (ORCPT ); Wed, 15 Oct 2008 00:12:27 -0400 Received: from ey-out-2122.google.com ([74.125.78.25]:50138 "EHLO ey-out-2122.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750835AbYJOEM0 (ORCPT ); Wed, 15 Oct 2008 00:12:26 -0400 Received: by ey-out-2122.google.com with SMTP id 6so914175eyi.37 for ; Tue, 14 Oct 2008 21:12:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:mime-version:content-type:content-disposition:user-agent; bh=ANyxUb54y03uF1a3Qby6W8swbcslpvddlMd6meN0nao=; b=CokCjkzHUo6KNWRqy1sPBuYsb/PzOljauTE6RWas/hkhkIdP9DqxjBZl3C3mN7dZ8X zriZRW/mML4V9qgNuC7bIRVQOKe+gjIA5RG7hIa66C2S7CfKHK4hyr4GhbHpnJ3QPttU qrHlK7vZ6u+ilPNckcOJpyRz5lkK3tJkqKb/4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:mime-version:content-type :content-disposition:user-agent; b=TVfUEnm+FJhVJVZcZWB4yBbr2MjtDBe+ZOcfjZmMDrcwGD93maA9DX7TBxr698gRRw 6XuKjqZ6gm08DwOSN0SLKvrFEljWahiM1r8ZBVWHxexXXdBJBtIbDUNxF+VudPwQIC5w +c7+F529htJrjoCPOMVPCDTfx8C/Ty1hZhjoM= Received: by 10.210.11.13 with SMTP id 13mr564111ebk.68.1224043944807; Tue, 14 Oct 2008 21:12:24 -0700 (PDT) Received: from localhost (gw.zunet.ru [217.67.117.64]) by mx.google.com with ESMTPS id 6sm3604352nfv.8.2008.10.14.21.12.22 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 14 Oct 2008 21:12:23 -0700 (PDT) Date: Wed, 15 Oct 2008 08:15:22 +0400 From: Alexey Dobriyan To: davem@davemloft.net Cc: netdev@vger.kernel.org, xemul@openvz.org, den@openvz.org Subject: [PATCH] netns: fix net_generic array leak Message-ID: <20081015041522.GD24058@x200.localdomain> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Signed-off-by: Alexey Dobriyan --- net/core/net_namespace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- 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); }