[PATCH AUTOSEL 5.2 38/70] powerpc/perf: fix imc allocation failure handling