OP-TEE / optee_os

Trusted side of the TEE
Other
1.59k stars 1.07k forks source link

core: fix error handling in tee_svc_storage_read_head() #7005

Closed zhupg closed 2 months ago

zhupg commented 2 months ago

Prior to this all errors except TEE_ERROR_OUT_OF_MEMORY from fops->read() was reported as TEE_ERROR_CORRUPT_OBJECT leading to removal of the object. We should not treat all errors as corrupt, so remove the error code translation.

jforissier commented 2 months ago

Please add a Signed-off-by: line. With that you may also add: Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>

jenswi-linaro commented 2 months ago

Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>

zhupg commented 2 months ago

I have updated the commit message, thanks for your review.