[PATCH 6.12 009/262] coresight: trbe: Prevent overflow in PERF_IDX2OFF()