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

Jerome Brunet jbrunet at baylibre.com
Fri Nov 27 07:23:34 PST 2026


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




More information about the linux-riscv mailing list