Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9175477pxu; Mon, 28 Dec 2020 08:27:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJzOY0WNMc2TA0BQfqgp+OhUruTxpGgN1nAVrpMiuEfUfXuOWvMcfCPMqKts88wfTIb6aNoh X-Received: by 2002:a17:907:1004:: with SMTP id ox4mr41378470ejb.240.1609172832839; Mon, 28 Dec 2020 08:27:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609172832; cv=none; d=google.com; s=arc-20160816; b=h/9xeOq+k5gEaOaGVAElJua3Zlqj4cIsAh50Yt7TCci+/X5HLuZWvHx1hFM0t7xNIo zXJQ1yrGAWMWCzbUt3CSfYI2jXNuOP1AZiiBSLmbcI9siNru3c7um0eq0wcG5LoO0Her vtVWDsQ31VFH5fhhbI+oKK1hDXnQ54WOe2Lg3dkt4wf4nph1mfz501JaUHB0fZLXFFGs L2wXx/IfAA0MYiQjsMU1tQkxd9xgr6lpyRN/Gl/c+IEHALovqqHh28xWxeSUjWhtJKrQ BxxjFQ+svlo5FuisKwiU7SvS6IJlRRNFviPITl+shzTIKX/utLR/Qoo6MRZWN2Zp2TP2 7Ayw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=sqVLe8lnPfg5df2t2W7DwgGluuF4AJrMjxSO1/aS/2g=; b=cCQle7BKOhr79//FV6/ck7MYxFLtn2B9YI6/ff1/NsuykBQ37BALo76fKeDr1AKrau uaKyGopapKrv8yCc6N5o/y0A3aN7jXVG4WOTsgwrfs92i8V+wERc3s/4P8qoD8C1ulde MLh5d93px+BdGwdXojINSozYnuS5Lm2vdqM3diA1Dy/tXIn9o3OOQBSroMqcUkVzbdjt n9qHybUjyWL4b1Db829HuP0l/6lUSS1w1eFqBDVCicOplvNoNE+WpoxD4Az+4czu25/9 XtqBpzxX9VFPAyQS6q6tQvEqvmRVSJDriR9XjitT9jsjuSZTTXyJpWJDoY7rYDuHgSIu +Psw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Xe+gCFyX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x14si20460090edq.88.2020.12.28.08.26.50; Mon, 28 Dec 2020 08:27:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Xe+gCFyX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731305AbgL1QYh (ORCPT + 99 others); Mon, 28 Dec 2020 11:24:37 -0500 Received: from mail.kernel.org ([198.145.29.99]:37730 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731328AbgL1NKP (ORCPT ); Mon, 28 Dec 2020 08:10:15 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7989F208BA; Mon, 28 Dec 2020 13:09:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609161000; bh=u0oCJXxMJ3xICbV8bdTrpRsE6r99GQjewMSFCa2WdC0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Xe+gCFyXCgOm0B2xpNIaKB6KCERUNQzZeEFCQjVPPI90H7j7s8Fg85+I5+/f3rBmK ae8TxAVZ+4JnaekSkJnOq6UT2SsGPNY1AkIRl/gMen1Qr2XrHMcsRQZpAvqtFo948j PDFGjnkX4gtSvK/lmhm0aNZvPzzBjU8Ik9El7dbo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dan Carpenter , Geert Uytterhoeven , Sasha Levin Subject: [PATCH 4.14 066/242] soc: renesas: rmobile-sysc: Fix some leaks in rmobile_init_pm_domains() Date: Mon, 28 Dec 2020 13:47:51 +0100 Message-Id: <20201228124907.931061857@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228124904.654293249@linuxfoundation.org> References: <20201228124904.654293249@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dan Carpenter [ Upstream commit cf25d802e029c31efac8bdc979236927f37183bd ] This code needs to call iounmap() on one error path. Fixes: 2173fc7cb681 ("ARM: shmobile: R-Mobile: Add DT support for PM domains") Signed-off-by: Dan Carpenter Link: https://lore.kernel.org/r/20200923113142.GC1473821@mwanda Signed-off-by: Geert Uytterhoeven Signed-off-by: Sasha Levin --- arch/arm/mach-shmobile/pm-rmobile.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-shmobile/pm-rmobile.c b/arch/arm/mach-shmobile/pm-rmobile.c index 3a4ed4c33a68e..e312f676a0fdf 100644 --- a/arch/arm/mach-shmobile/pm-rmobile.c +++ b/arch/arm/mach-shmobile/pm-rmobile.c @@ -336,6 +336,7 @@ static int __init rmobile_init_pm_domains(void) pmd = of_get_child_by_name(np, "pm-domains"); if (!pmd) { + iounmap(base); pr_warn("%pOF lacks pm-domains node\n", np); continue; } -- 2.27.0