summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2020-09-23 14:31:42 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-12-30 11:25:49 +0100
commit02167d71e0859701f313cd6b6a9a028d104282e0 (patch)
tree9267bc9f4a45ae50a533d8bda29385e3443a8358 /arch
parent577dcd1af8c680dd31e5de08289d5c1ca0674967 (diff)
downloadlinux-stable-02167d71e0859701f313cd6b6a9a028d104282e0.tar.gz
linux-stable-02167d71e0859701f313cd6b6a9a028d104282e0.tar.bz2
linux-stable-02167d71e0859701f313cd6b6a9a028d104282e0.zip
soc: renesas: rmobile-sysc: Fix some leaks in rmobile_init_pm_domains()
[ 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 <dan.carpenter@oracle.com> Link: https://lore.kernel.org/r/20200923113142.GC1473821@mwanda Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-shmobile/pm-rmobile.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/pm-rmobile.c b/arch/arm/mach-shmobile/pm-rmobile.c
index e348bcfe389d..cb8b02a1abe2 100644
--- a/arch/arm/mach-shmobile/pm-rmobile.c
+++ b/arch/arm/mach-shmobile/pm-rmobile.c
@@ -330,6 +330,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;
}