Skip to content

Commit

Permalink
soc: renesas: rmobile-sysc: Fix some leaks in rmobile_init_pm_domains()
Browse files Browse the repository at this point in the history
[ Upstream commit cf25d80 ]

This code needs to call iounmap() on one error path.

Fixes: 2173fc7 ("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>
  • Loading branch information
Dan Carpenter authored and gregkh committed Dec 30, 2020
1 parent 38cded3 commit fcb0be5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/soc/renesas/rmobile-sysc.c
Expand Up @@ -327,6 +327,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;
}
Expand Down

0 comments on commit fcb0be5

Please sign in to comment.