[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:17:40 PST 2026


> 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




More information about the linux-riscv mailing list