From patchwork Mon Feb 7 12:57:51 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Koskinen, Aaro (Nokia - FI/Espoo)" X-Patchwork-Id: 537911 X-Patchwork-Delegate: khilman@deeprootsystems.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p17Ct1r9013496 for ; Mon, 7 Feb 2011 12:55:01 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751962Ab1BGMzA (ORCPT ); Mon, 7 Feb 2011 07:55:00 -0500 Received: from smtp.nokia.com ([147.243.128.24]:54013 "EHLO mgw-da01.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751954Ab1BGMzA (ORCPT ); Mon, 7 Feb 2011 07:55:00 -0500 Received: from nokia.com (localhost [127.0.0.1]) by mgw-da01.nokia.com (Switch-3.4.3/Switch-3.4.3) with ESMTP id p17CsuH2027236; Mon, 7 Feb 2011 14:54:56 +0200 Received: from localhost.localdomain ([corebot.research.nokia.com [172.21.34.37]]) by mgw-da01.nokia.com with RELAY id p17CsldO027127 ; Mon, 7 Feb 2011 14:54:50 +0200 From: Aaro Koskinen To: tony@atomide.com, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Aaro Koskinen Subject: [PATCH] arm: mach-omap2: smartreflex: fix another memory leak Date: Mon, 7 Feb 2011 14:57:51 +0200 Message-Id: <1297083471-6341-1-git-send-email-aaro.koskinen@nokia.com> X-Mailer: git-send-email 1.5.6.5 X-Nokia-AV: Clean Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Mon, 07 Feb 2011 12:55:01 +0000 (UTC) diff --git a/arch/arm/mach-omap2/smartreflex.c b/arch/arm/mach-omap2/smartreflex.c index 77ecebf..61aebed 100644 --- a/arch/arm/mach-omap2/smartreflex.c +++ b/arch/arm/mach-omap2/smartreflex.c @@ -942,6 +942,7 @@ static int __init omap_sr_probe(struct platform_device *pdev) strcat(name, volt_name); (void) debugfs_create_x32(name, S_IRUGO | S_IWUGO, nvalue_dir, &(sr_info->nvalue_table[i].nvalue)); + kfree(name); } return ret;