[PATCH] ARM: mstar: Fix refcount leaks

Romain Perier romain.perier at gmail.com
Tue May 17 23:29:07 PDT 2022


Hi,

Le jeu. 12 mai 2022 à 05:47, Miaoqian Lin <linmq006 at gmail.com> a écrit :
>
> of_find_compatible_node() returns a node pointer with refcount
> incremented, we should use of_node_put() on it when done.
> Add missing of_node_put() to avoid refcount leak.
>
> Fixes: 5919eec0f092 ("ARM: mstar: SMP support")
> Fixes: 312b62b6610c ("ARM: mstar: Add machine for MStar/Sigmastar Armv7 SoCs")
> Signed-off-by: Miaoqian Lin <linmq006 at gmail.com>

Looks good to me,

Reviewed-by: Romain Perier <romain.perier at gmail.com>



More information about the linux-arm-kernel mailing list