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

Jerome Brunet jbrunet at baylibre.com
Sun Nov 22 07:43:54 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: edab7204afe5 ("clk: starfive: Add StarFive JH7110 system clock driver")

sashiko is right about this tag, this needs fixing

-- 
Jerome




More information about the linux-riscv mailing list