[PATCH openEuler-1.0-LTS 043/149] perf/arm_pmu_platform: Fix error handling