Re: [PATCH v3 1/6] clk: starfive: jh7110-sys: Fix memory leak in reset controller register

From: Jerome Brunet

Date: Fri Nov 27 2026 - 10:17:55 EST


> auxiliary_device_init() returns an error before device_initialize() is
> called, so the release callback never runs on this path and the rdev
> allocated in jh7110_reset_controller_register() is leaked.
>
> Free rdev when auxiliary_device_init() fails.
>
> Fixes: d1aae0663023 ("clk: starfive: Avoid casting iomem pointers")

sashiko is right about this tag, this needs fixing
I'll do it while applying the change

--
Jerome