From patchwork Fri Jan 28 14:50:55 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: 514951 X-Patchwork-Delegate: tony@atomide.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 p0SEmPlc029645 for ; Fri, 28 Jan 2011 14:48:26 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754518Ab1A1OsY (ORCPT ); Fri, 28 Jan 2011 09:48:24 -0500 Received: from smtp.nokia.com ([147.243.128.24]:34769 "EHLO mgw-da01.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753278Ab1A1OsX (ORCPT ); Fri, 28 Jan 2011 09:48:23 -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 p0SEmK9H017093; Fri, 28 Jan 2011 16:48:20 +0200 Received: from localhost.localdomain ([corebot.research.nokia.com [172.21.34.37]]) by mgw-da01.nokia.com with RELAY id p0SEmCMt017034 ; Fri, 28 Jan 2011 16:48:14 +0200 From: Aaro Koskinen To: linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org Cc: Aaro Koskinen Subject: [PATCH] arm: mach-omap2: mux: free allocated memory on error exit Date: Fri, 28 Jan 2011 16:50:55 +0200 Message-Id: <1296226255-5694-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]); Fri, 28 Jan 2011 14:48:26 +0000 (UTC) diff --git a/arch/arm/mach-omap2/mux.c b/arch/arm/mach-omap2/mux.c index df8d2f2..18aea0c 100644 --- a/arch/arm/mach-omap2/mux.c +++ b/arch/arm/mach-omap2/mux.c @@ -1000,6 +1000,7 @@ int __init omap_mux_init(const char *name, u32 flags, if (!partition->base) { pr_err("%s: Could not ioremap mux partition at 0x%08x\n", __func__, partition->phys); + kfree(partition); return -ENODEV; }