[PATCH 2/2] coresight: tmc: Smatch: Fix potential NULL pointer dereference