[PATCH 6.12 186/262] coresight: trbe: Return NULL pointer for allocation failures