[PATCH] ARM: bcm: Fix refcount leak in bcm_kona_smc_init

Florian Fainelli f.fainelli at gmail.com
Wed Jun 8 02:23:20 PDT 2022


On Thu, 26 May 2022 12:13:25 +0400, Miaoqian Lin <linmq006 at gmail.com> wrote:
> of_find_matching_node() returns a node pointer with refcount
> incremented, we should use of_node_put() on it when not need anymore.
> Add missing of_node_put() to avoid refcount leak.
> 
> Fixes: b8eb35fd594a ("ARM: bcm281xx: Add L2 cache enable code")
> Signed-off-by: Miaoqian Lin <linmq006 at gmail.com>
> ---

Applied to https://github.com/Broadcom/stblinux/commits/soc/next, thanks!
--
Florian



More information about the linux-arm-kernel mailing list