linux-stable/drivers/memory
Liang He a4f7eb8385 memory: of: Fix refcount leak bug in of_get_ddr_timings()
[ Upstream commit 05215fb320 ]

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: e6b42eb6a6 ("memory: emif: add device tree support to emif driver")
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-1-windhl@126.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-10-26 13:17:02 +02:00
..
samsung
tegra
Kconfig
Makefile
atmel-ebi.c memory: atmel-ebi: Fix missing of_node_put in atmel_ebi_probe 2022-04-20 09:08:31 +02:00
atmel-sdramc.c
da8xx-ddrctl.c
emif.c memory: emif: check the pointer temp in get_device_details() 2022-04-20 09:08:15 +02:00
emif.h
fsl-corenet-cf.c
fsl_ifc.c memory: fsl_ifc: fix leak of irq and nand_irq in fsl_ifc_ctrl_probe 2021-11-26 11:40:33 +01:00
jz4780-nemc.c
mtk-smi.c
mvebu-devbus.c
of_memory.c memory: of: Fix refcount leak bug in of_get_ddr_timings() 2022-10-26 13:17:02 +02:00
of_memory.h
omap-gpmc.c
pl172.c
tegra20-mc.c
ti-aemif.c