Message ID | 20240605202708.613471310@goodmis.org (mailing list archive) |
---|---|
State | Accepted |
Commit | 0ddef5d601ff992430b7874074c3549aa66f2c85 |
Headers | show |
Series | ftrace: Minor fixes for sparse and kernel test robot | expand |
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index 3af0b1feb873..a39842a53444 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c @@ -310,7 +310,7 @@ static int remove_ftrace_ops(struct ftrace_ops __rcu **list, lockdep_is_held(&ftrace_lock)) == ops && rcu_dereference_protected(ops->next, lockdep_is_held(&ftrace_lock)) == &ftrace_list_end) { - *list = &ftrace_list_end; + rcu_assign_pointer(*list, &ftrace_list_end); return 0; }