[PATCH] meson-mx-socinfo: Fix refcount leak in meson_mx_socinfo_init
Martin Blumenstingl
martin.blumenstingl at googlemail.com
Tue May 24 12:13:23 PDT 2022
On Tue, May 24, 2022 at 8:57 AM 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: 5e68c0fc8df8 ("soc: amlogic: Add Meson6/Meson8/Meson8b/Meson8m2 SoC Information driver")
> Signed-off-by: Miaoqian Lin <linmq006 at gmail.com>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl at googlemail.com>
Thank you for finding and fixing this!
Best regards,
Martin
More information about the linux-amlogic
mailing list