linux/drivers/memory
Liang He 1d312c12c9 memory: of: Fix refcount leak bug in of_lpddr3_get_ddr_timings()
[ Upstream commit 48af14fb0e ]

We should add the of_node_put() when breaking out of
for_each_child_of_node() as it will automatically increase
and decrease the refcount.

Fixes: 976897dd96 ("memory: Extend of_memory with LPDDR3 support")
Signed-off-by: Liang He <windhl@126.com>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20220719085640.1210583-2-windhl@126.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-10-26 13:25:28 +02:00
..
samsung
tegra
.gitignore
atmel-ebi.c
atmel-sdramc.c
brcmstb_dpfe.c
bt1-l2-ctl.c
da8xx-ddrctl.c
emif-asm-offsets.c
emif.c
emif.h
fsl_ifc.c
fsl-corenet-cf.c
jedec_ddr_data.c
jedec_ddr.h
jz4780-nemc.c
Kconfig
Makefile
mtk-smi.c
mvebu-devbus.c
of_memory.c memory: of: Fix refcount leak bug in of_lpddr3_get_ddr_timings() 2022-10-26 13:25:28 +02:00
of_memory.h
omap-gpmc.c
pl172.c
pl353-smc.c
renesas-rpc-if.c
stm32-fmc2-ebi.c
ti-aemif.c
ti-emif-pm.c
ti-emif-sram-pm.S