From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH] atm: dereference of he_dev->rbps_virt in he_init_group() Date: Wed, 02 Sep 2009 23:25:48 -0700 (PDT) Message-ID: <20090902.232548.238393942.davem@davemloft.net> References: <4A9979CC.2090905@gmail.com> <4A997A78.9080309@gmail.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: chas@cmf.nrl.navy.mil, linux-atm-general@lists.sourceforge.net, netdev@vger.kernel.org, akpm@linux-foundation.org To: roel.kluin@gmail.com Return-path: Received: from 74-93-104-97-Washington.hfc.comcastbusiness.net ([74.93.104.97]:58878 "EHLO sunset.davemloft.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754550AbZICGZe (ORCPT ); Thu, 3 Sep 2009 02:25:34 -0400 In-Reply-To: <4A997A78.9080309@gmail.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Roel Kluin Date: Sat, 29 Aug 2009 20:59:04 +0200 > he_dev->rbps_virt or he_dev->rbpl_virt allocation may fail. > > Signed-off-by: Roel Kluin > --- > There was another in the same function. These new return statements will both leak resources allocated earlier. All the caller is going to do is return -ENOMEM as well and it does not cleanup actions at all. Please fix this up.