Skip to content

Commit a904c5f

Browse files
committed
Merge tag 'at91-soc-5.17' of git://git.kernel.org/pub/scm/linux/kernel/git/at91/linux into arm/drivers
AT91 SoC #1 for 5.17: - one low priority fix about of_node_put() missing in PM code * tag 'at91-soc-5.17' of git://git.kernel.org/pub/scm/linux/kernel/git/at91/linux: ARM: at91: pm: Add of_node_put() before goto Link: https://lore.kernel.org/r/20211217164134.28566-1-nicolas.ferre@microchip.com Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2 parents b118863 + bb29e40 commit a904c5f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • arch/arm/mach-at91

arch/arm/mach-at91/pm.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -645,6 +645,7 @@ static __init int at91_dt_ramc(bool phy_mandatory)
645645
if (!soc_pm.data.ramc[idx]) {
646646
pr_err("unable to map ramc[%d] cpu registers\n", idx);
647647
ret = -ENOMEM;
648+
of_node_put(np);
648649
goto unmap_ramc;
649650
}
650651

@@ -670,6 +671,7 @@ static __init int at91_dt_ramc(bool phy_mandatory)
670671
if (!soc_pm.data.ramc_phy) {
671672
pr_err("unable to map ramc phy cpu registers\n");
672673
ret = -ENOMEM;
674+
of_node_put(np);
673675
goto unmap_ramc;
674676
}
675677
}

0 commit comments

Comments
 (0)