[PATCH 5.18 0979/1095] spmi: trace: fix stack-out-of-bound access in SPMI tracing functions