[PATCH] memory: samsung: exynos5422-dmc: Fix refcount leak in of_get_dram_timings

Krzysztof Kozlowski krzysztof.kozlowski at linaro.org
Mon Jun 6 02:20:46 PDT 2022


On Thu, 2 Jun 2022 08:17:21 +0400, Miaoqian Lin wrote:
> 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.
> 
> 

Applied, thanks!

[1/1] memory: samsung: exynos5422-dmc: Fix refcount leak in of_get_dram_timings
      https://git.kernel.org/krzk/linux-mem-ctrl/c/1332661e09304b7b8e84e5edc11811ba08d12abe

Best regards,
-- 
Krzysztof Kozlowski <krzysztof.kozlowski at linaro.org>



More information about the linux-arm-kernel mailing list