diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index 0fcc6caead1cf7b66649d6d939f1a4c8511c4e9a..7caa4505508da64dcf3c8836808aa5bb8c0f5576 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c @@ -1210,7 +1210,9 @@ ftrace_hash_move(struct ftrace_ops *ops, int enable, if (!src->count) { free_ftrace_hash_rcu(*dst); rcu_assign_pointer(*dst, EMPTY_HASH); - return 0; + /* still need to update the function records */ + ret = 0; + goto out; } /*