author: Steven Rostedt (VMware) <rostedt@goodmis.org> 2021-07-22 21:52:18 -0400
committer: Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2021-07-28 14:37:37 +0200
commit: 58f47cfe5210daf71b3e6cb34570f80fee667611
parent: 0ea2fd39f1192941bd49e9c0d93ce61cbba5f6f3
Commit Summary:
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/kernel/tracepoint.c b/kernel/tracepoint.c
index 976bf8ce8039..fc32821f8240 100644
--- a/kernel/tracepoint.c
+++ b/kernel/tracepoint.c
@@ -299,8 +299,8 @@ static int tracepoint_add_func(struct tracepoint *tp,
* a pointer to it. This array is referenced by __DO_TRACE from
* include/linux/tracepoint.h using rcu_dereference_sched().
*/
- rcu_assign_pointer(tp->funcs, tp_funcs);
tracepoint_update_call(tp, tp_funcs, false);
+ rcu_assign_pointer(tp->funcs, tp_funcs);
static_key_enable(&tp->key);
release_probes(old);