[Linaro-mm-sig] [PATCH v12 4/9] tee: refactor params_from_user()