[PATCH 5.15 113/181] tracing: Fix wild-memory-access in register_synth_event()