[PATCH openEuler-5.10-LTS-SP1 11/16] ftrace: Fix invalid address access in lookup_rec() when index is 0