[lib][sm] Fix UBSAN error

SM_ERR_UNDEFINED_SMC is returned in a long tiggering an overflow on 32
bit kernels.

Bug: 129300035
Change-Id: Ia65cb8e8890c9cb5173aaff9b72a8fc23c69aaeb
1 file changed