| commit | 9152fafcdd38092a685e2cb8a0475b57cf144a5a | [log] [tgz] |
|---|---|---|
| author | Victor Chong <victor.chong@linaro.org> | Mon Jun 24 00:41:08 2019 +0900 |
| committer | Jérôme Forissier <jerome.forissier@linaro.org> | Tue Aug 06 21:20:06 2019 +0200 |
| tree | 04cac385c4696a2ab32238bbebdeafd38c90920c | |
| parent | 505fc28ff37897738de7fe8783184f1ef63606b5 [diff] |
rpmb emu: fix ioctl return type The RPMB spec defines return results of commands as a single byte value. A result from an ioctl call for a command is stored in 'op_result' of 'struct rpmb_data_frame', which is of type 'uint16_t', which corresponds to 'uint8_t op_result[2]' of 'struct rpmb_data_frame' in 'optee_os', with the single byte result stored @ index 1 of the 2-element byte array since data transfer is MSB first, so we need to convert the return results into the proper uint16_t values. Signed-off-by: Victor Chong <victor.chong@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
This git contains source code for the non-secure side implementation of the OP-TEE project making up the client library and tee-supplicant.
All official OP-TEE documentation has moved to http://optee.readthedocs.io. The information that used to be here in this git can be found under optee_client.
// OP-TEE core maintainers