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