[PATCH] clk: versatile: clk-icst: Fix node reference leak in of_syscon_icst_setup()
Brian Masney
bmasney at redhat.com
Fri Sep 18 15:27:52 PDT 2026
On Wed, Sep 16, 2026 at 07:25:39PM +0200, Linus Walleij wrote:
> On Tue, Sep 15, 2026 at 9:01 AM Wentao Liang <vulab at iscas.ac.cn> wrote:
>
> > of_get_parent() takes a reference on the syscon parent node. The
> > reference is intentionally kept on the success path, but the error paths
> > return without dropping it, leaking the node reference. Release the
> > reference before returning on the error paths.
> >
> > Fixes: d430819d69a5 ("clk: versatile-icst: add device tree support")
> > Cc: stable at vger.kernel.org
>
> Stable? Really? It's no big deal.
I'll pick this up but I'm going to drop the stable tag. It'll probably
end up there anyways with the Fixes tag.
Brian
>
> > Signed-off-by: Wentao Liang <vulab at iscas.ac.cn>
>
> Reviewed-by: Linus Walleij <linusw at kernel.org>
>
> Yours,
> Linus Walleij
More information about the linux-arm-kernel
mailing list