[PATCH 4.14 151/229] spmi: trace: fix stack-out-of-bound access in SPMI tracing functions