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:23:42 EST


On 2026-11-27 16:17 +0100, Jerome Brunet wrote:
> > 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

Arf I got confused , you've already fixed it up. Sorry about that

--
Jerome