[PATCH 5.4 061/408] drivers/perf: thunderx2_pmu: Fix memory resource error handling