Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 67628DDFDB for ; Thu, 21 Aug 2008 14:50:16 +1000 (EST) Message-Id: From: Kumar Gala To: Timur Tabi In-Reply-To: <1219246149-23812-1-git-send-email-timur@freescale.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Mime-Version: 1.0 (Apple Message framework v926) Subject: Re: [PATCH v2] powerpc: fix memory leaks in QE library Date: Wed, 20 Aug 2008 23:49:49 -0500 References: <1219246149-23812-1-git-send-email-timur@freescale.com> Cc: linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Aug 20, 2008, at 10:29 AM, Timur Tabi wrote: > Fix two memory leaks in the Freescale QE library: add a missing > kfree() in > ucc_fast_init() and ucc_slow_init() if the ioremap() fails, and update > ucc_fast_free() and ucc_slow_free() to call iounmap() if necessary. > > Based on a patch from Tony Breeds . > > Signed-off-by: Timur Tabi > --- > arch/powerpc/sysdev/qe_lib/ucc_fast.c | 4 ++++ > arch/powerpc/sysdev/qe_lib/ucc_slow.c | 8 +++++--- > 2 files changed, 9 insertions(+), 3 deletions(-) applied. (this just became ucc_slow since I had already applied v1). - k