I'd like to request commit 02d029a41dc986e2d5a77ecca45803857b346829 ("perf/x86: Reset destroy callback on event init failure") be merged to the 5.10 stable branch.
This fixes a bug which was exposed by commit f11dd0d80555 ("perf/x86/amd/ibs: Extend PERF_PMU_CAP_NO_EXCLUDE to IBS Op") merged into 5.10.65 (as commit bafece6cd1f9), and partially broke perf on AMD StoneyRidge systems.
I've tested this patch locally on 5.10.70 on an AMD StoneyRidge (A4-9120C) system.