From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net-next-2.6] l2tp: fix memory allocation Date: Fri, 23 Apr 2010 16:37:47 -0700 (PDT) Message-ID: <20100423.163747.240971201.davem@davemloft.net> References: <20100423105338.GA2853@psychotron.lab.eng.brq.redhat.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, kleptog@svana.org, jchapman@katalix.com To: jpirko@redhat.com Return-path: Received: from 74-93-104-97-Washington.hfc.comcastbusiness.net ([74.93.104.97]:55526 "EHLO sunset.davemloft.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750910Ab0DWXhm (ORCPT ); Fri, 23 Apr 2010 19:37:42 -0400 In-Reply-To: <20100423105338.GA2853@psychotron.lab.eng.brq.redhat.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Jiri Pirko Date: Fri, 23 Apr 2010 12:53:39 +0200 > Since .size is set properly in "struct pernet_operations l2tp_net_ops", > allocating space for "struct l2tp_net" by hand is not correct, even causes > memory leakage. > > Signed-off-by: Jiri Pirko Applied.