[PATCH openEuler-5.10 383/427] ftrace: Clean up hash direct_functions on register failures