[PATCH 6.17 431/563] coresight: trbe: Return NULL pointer for allocation failures