Message ID | 20220407133036.213217-5-nuno.sa@analog.com (mailing list archive) |
---|---|
State | RFC, archived |
Headers | show |
Series | Dynamic OF and use after free related fixes | expand |
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index a2d8778ca3e0..a9302bb7b92e 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -4425,7 +4425,7 @@ void __clk_put(struct clk *clk) clk->exclusive_count = 0; } - hlist_del(&clk->clks_node); + clk_core_unlink_consumer(clk); if (clk->min_rate > clk->core->req_rate || clk->max_rate < clk->core->req_rate) clk_core_set_rate_nolock(clk->core, clk->core->req_rate);
There is an helper to remove a consumer from the clk provider list. Hence, let's use it when releasing a consumer. Signed-off-by: Nuno Sá <nuno.sa@analog.com> --- drivers/clk/clk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)