Re: [PATCH] rtc: pcf8563: fix clock provider leak on unbind

Alexandre Belloni <[email protected]>
Newsgroups org.kernel.vger.linux-rtc,org.kernel.vger.linux-kernel
Message-ID <178715693826.130787.13032869938030567300.b4-ty@b4>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.