[PATCH 5.4 253/389] spmi: trace: fix stack-out-of-bound access in SPMI tracing functions