WSL2-Linux-Kernel/arch/arm/mach-shmobile
Liang He c53d904973 ARM: shmobile: rcar-gen2: Increase refcount for new reference
[ Upstream commit 75a185fb92 ]

In rcar_gen2_regulator_quirk(), for_each_matching_node_and_match() will
automatically increase and decrease the refcount.  However, we should
call of_node_get() for the new reference created in 'quirk->np'.
Besides, we also should call of_node_put() before the 'quirk' being
freed.

Signed-off-by: Liang He <windhl@126.com>
Link: https://lore.kernel.org/r/20220701121804.234223-1-windhl@126.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-08-17 14:23:04 +02:00
..
Kconfig
Makefile
common.h
emev2.h
headsmp-apmu.S
headsmp-scu.S
headsmp.S
platsmp-apmu.c
platsmp-scu.c
platsmp.c
pm-rcar-gen2.c
r8a7779.h
rcar-gen2.h
regulator-quirk-rcar-gen2.c
setup-emev2.c
setup-r7s9210.c
setup-r7s72100.c
setup-r8a73a4.c
setup-r8a7740.c
setup-r8a7778.c
setup-r8a7779.c
setup-rcar-gen2.c
setup-sh73a0.c
sh73a0.h
smp-emev2.c
smp-r8a7779.c
smp-sh73a0.c
suspend.c
timer.c