[PATCH openEuler-1.0-LTS 20/33] perf/ftrace: Fix use-after-free in __ftrace_ops_list_func()