[PATCH 5.15 053/128] perf/core: Fix potential NULL deref