[PATCH 5.2 059/137] powerpc/perf: fix imc allocation failure handling