Re: [PATCH] rtc: pcf8563: fix clock provider leak on unbind
From: Alexandre Belloni
Date: Wed Aug 19 2026 - 12:34:16 EST
On Mon, 01 Jun 2026 20:51:35 -0700, Yi Ding wrote:
> pcf8563_clkout_register_clk() registers the CLKOUT clock provider with
> of_clk_add_provider(), but nothing ever unwinds it: there is no
> of_clk_del_provider() call and the driver has no remove callback. Each
> of_clk_add_provider() allocates a struct of_clk_provider, takes a
> reference on the OF node and adds an entry to the global of_clk_providers
> list, none of which is released when the device is unbound. Every
> bind/unbind (or module reload) therefore leaks a provider structure and
> an of_node reference.
>
> [...]
Applied, thanks!
[1/1] rtc: pcf8563: fix clock provider leak on unbind
https://git.kernel.org/abelloni/c/9c48a5368504
Best regards,
--
Alexandre Belloni, co-owner and COO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com