[PATCH openEuler-1.0-LTS 005/111] perf/arm_pmu_platform: Fix error handling