mbox series

[RESEND,0/2] clk: fix possible use after free

Message ID 20240626-dev-clk-misc-v1-0-e2975f2abb76@analog.com (mailing list archive)
Headers show
Series clk: fix possible use after free | expand

Message

Nuno Sa June 26, 2024, 2:59 p.m. UTC
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á