We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 293ba3b commit 874f224Copy full SHA for 874f224
drivers/clk/clk.c
@@ -2140,9 +2140,10 @@ void clk_unregister(struct clk *clk)
2140
2141
if (!hlist_empty(&clk->children)) {
2142
struct clk *child;
2143
+ struct hlist_node *t;
2144
2145
/* Reparent all children to the orphan list. */
- hlist_for_each_entry(child, &clk->children, child_node)
2146
+ hlist_for_each_entry_safe(child, t, &clk->children, child_node)
2147
clk_set_parent(child, NULL);
2148
}
2149
0 commit comments