Re: [PATCH] rtc: ac100: Fix clock provider use-after-free on probe failure

From: Alexandre Belloni

Date: Mon Sep 21 2026 - 15:29:59 EST


On Sat, 05 Sep 2026 21:41:52 +0100, Aamir Ahmed wrote:
> ac100_rtc_register_clks() registers the RTC-32k clock with
> clk_hw_register_fixed_rate() and the clock provider with
> of_clk_add_hw_provider(). Neither is device managed, and both are
> released only from ac100_rtc_remove(). The driver core does not call
> remove() when probe() fails: really_probe() reaches probe_failed below
> the device_remove() call and goes straight to releasing the device's
> managed resources.
>
> [...]

Applied, thanks!

[1/1] rtc: ac100: Fix clock provider use-after-free on probe failure
https://git.kernel.org/abelloni/c/fcf0b58e976e

Best regards,

--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com