Re: [PATCH v1] clk: rockchip: Unregister notifier on multi-PLL registration failure

From: Heiko Stuebner

Date: Sun Nov 01 2026 - 17:32:01 EST



On Sun, 20 Sep 2026 00:31:06 +0800, Yibo Tan wrote:
> rockchip_clk_register_cpuclk_multi_pll() registers an embedded notifier
> block before duplicating the rate table. If that allocation fails, the
> error path frees the notifier owner and unregisters the watched composite
> clock without removing the notifier.
>
> The common clock framework retains both pointers in its global notifier
> state. A later rate change walks that state in __clk_notify() and reads the
> freed watched struct clk before it can compare the clock core. The notifier
> chain also retains the notifier block embedded in the freed cpuclk.
>
> [...]

Applied, thanks!

[1/1] clk: rockchip: Unregister notifier on multi-PLL registration failure
commit: acee45f349c701d29e2753227b813cd692fd8bda

Best regards,
--
Heiko Stuebner <heiko@xxxxxxxxx>