[PATCH] memory: pl353-smc: Fix refcount leak bug in pl353_smc_probe()

Krzysztof Kozlowski krzysztof.kozlowski at linaro.org
Tue Jul 19 01:33:42 PDT 2022


On Sat, 16 Jul 2022 11:13:24 +0800, Liang He wrote:
> The break of for_each_available_child_of_node() needs a
> correpsonding of_node_put() when the reference 'child'is not
> used anymore. Here we do not need to call of_node_put() in
> fail path as '!match' means no break.
> 
> While the of_platform_device_create() will created a new
> reference by 'child' but it has considered the refcounting.
> 
> [...]

Applied, thanks!

[1/1] memory: pl353-smc: Fix refcount leak bug in pl353_smc_probe()
      https://git.kernel.org/krzk/linux-mem-ctrl/c/2d68c320aa14e5b494de698ce70ca6e6db40bc4b

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



More information about the linux-arm-kernel mailing list