Commit cf25d802 authored by Dan Carpenter's avatar Dan Carpenter Committed by Geert Uytterhoeven
Browse files

soc: renesas: rmobile-sysc: Fix some leaks in rmobile_init_pm_domains()



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

Fixes: 2173fc7c ("ARM: shmobile: R-Mobile: Add DT support for PM domains")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20200923113142.GC1473821@mwanda


Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
parent 3650b228
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
		}