linux-stable/drivers/memory
Miaoqian Lin 1332661e09 memory: samsung: exynos5422-dmc: Fix refcount leak in of_get_dram_timings
of_parse_phandle() returns a node pointer with refcount
incremented, we should use of_node_put() on it when not need anymore.
This function doesn't call of_node_put() in some error paths.
To unify the structure, Add put_node label and goto it on errors.

Fixes: 6e7674c3c6 ("memory: Add DMC driver for Exynos5422")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
Link: https://lore.kernel.org/r/20220602041721.64348-1-linmq006@gmail.com
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
2022-06-06 11:18:20 +02:00
..
samsung memory: samsung: exynos5422-dmc: Fix refcount leak in of_get_dram_timings 2022-06-06 11:18:20 +02:00
tegra Memory controller drivers for v5.19 - Tegra SoC 2022-05-09 23:12:50 +02:00
.gitignore .gitignore: prefix local generated files with a slash 2021-05-02 00:43:35 +09:00
Kconfig memory: omap-gpmc: OMAP_GPMC should depend on ARCH_OMAP2PLUS || ARCH_KEYSTONE || ARCH_K3 2022-06-06 11:10:53 +02:00
Makefile
atmel-ebi.c memory: atmel-ebi: Fix missing of_node_put in atmel_ebi_probe 2022-04-04 18:29:33 +02:00
atmel-sdramc.c
brcmstb_dpfe.c memory: brcmstb_dpfe: simplify platform_get_resource_byname() 2022-04-26 09:48:25 +02:00
bt1-l2-ctl.c
da8xx-ddrctl.c memory: da8xx-ddrctl: simplify platform_get_resource() 2022-04-26 09:48:25 +02:00
dfl-emif.c
emif-asm-offsets.c
emif.c More power management updates for 5.19-rc1 2022-05-30 11:37:26 -07:00
emif.h
fsl-corenet-cf.c memory: fsl-corenet-cf: Use helper function devm_platform_ioremap_resource() 2022-04-19 16:59:03 +02:00
fsl_ifc.c memory: fsl_ifc: populate child nodes of buses and mfd devices 2022-04-06 09:39:16 +02:00
jedec_ddr.h memory: Add LPDDR2-info helpers 2021-10-15 09:52:47 +02:00
jedec_ddr_data.c memory: Add LPDDR2-info helpers 2021-10-15 09:52:47 +02:00
jz4780-nemc.c
mtk-smi.c memory: mtk-smi: add missing put_device() call in mtk_smi_device_link_common 2022-06-06 11:17:14 +02:00
mvebu-devbus.c
of_memory.c memory: Update of_memory lpddr2 revision-id binding 2022-02-25 13:36:49 +01:00
of_memory.h memory: Add LPDDR2-info helpers 2021-10-15 09:52:47 +02:00
omap-gpmc.c memory: omap-gpmc: Allow building as a module 2022-04-29 08:57:36 +02:00
pl172.c
pl353-smc.c Memory controller drivers for v5.14 - PL353 2021-06-12 08:53:06 -07:00
renesas-rpc-if.c ARM: driver changes for 5.19 2022-05-26 10:32:47 -07:00
stm32-fmc2-ebi.c memory: stm32-fmc2-ebi: add missing of_node_put for loop iteration 2021-05-11 08:49:18 -04:00
ti-aemif.c memory: ti-emif: simplify platform_get_resource() 2022-04-26 09:48:25 +02:00
ti-emif-pm.c memory: ti-emif-pm: simplify platform_get_resource() 2022-04-26 09:48:25 +02:00
ti-emif-sram-pm.S