[PATCH 5.3 045/166] powerpc/perf: fix imc allocation failure handling