public inbox for linux-clk@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] clk: fix possible use after free
@ 2024-06-12  9:34 Nuno Sá
  2024-06-12  9:34 ` [PATCH 1/2] clk: fix clk not being unlinked from consumers list Nuno Sá
  2024-06-12  9:34 ` [PATCH 2/2] clk: use clk_core_unlink_consumer() helper Nuno Sá
  0 siblings, 2 replies; 3+ messages in thread
From: Nuno Sá @ 2024-06-12  9:34 UTC (permalink / raw)
  To: linux-clk; +Cc: Stephen Boyd, Michael Turquette

The first patch is fixing a possible use after free in case a clk
provider is removed before it's consumer (more details on the commit
message.  

The second patch is a straightforward replacement of the open coded 

hlist_del(&clk->clks_node) ->  clk_core_unlink_consumer(clk)

---
Nuno Sá (2):
      clk: fix clk not being unlinked from consumers list
      clk: use clk_core_unlink_consumer() helper

 drivers/clk/clk.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
base-commit: 5029c56be4bab3bce7db6d9595b0bbd171a5b154
change-id: 20240611-dev-clk-misc-a9e401b25032
--

Thanks!
- Nuno Sá


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-06-12  9:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-12  9:34 [PATCH 0/2] clk: fix possible use after free Nuno Sá
2024-06-12  9:34 ` [PATCH 1/2] clk: fix clk not being unlinked from consumers list Nuno Sá
2024-06-12  9:34 ` [PATCH 2/2] clk: use clk_core_unlink_consumer() helper Nuno Sá

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox