[PATCH openEuler-22.03-LTS-SP1 3/3] ftrace: Fix possible use-after-free issue in ftrace_location()