Home
last modified time | relevance | path

Searched hist:b1183340a491fe968f3747df77459521bfae5819 (Results 1 – 1 of 1) sorted by relevance

/optee_os/core/tee/
H A Dtee_svc_storage.cb1183340a491fe968f3747df77459521bfae5819 Tue Dec 18 14:36:50 UTC 2018 Jerome Forissier <jerome.forissier@linaro.org> core: syscall_storage_obj_rename(): fix handling of .rename() return status

Any error returned by fops->rename() should be reflected by
syscall_storage_obj_rename(). There is no reason why errors other than
TEE_ERROR_GENERIC should be ignored.

Fixes the following test case: create two persistent objects (o1 and o2),
close o1, rename o2 to the name of o1. TEE_RenamePersistentObject() should
return TEE_ERROR_ACCESS_CONFLICT, but TEE_SUCCESS is returned instead.

Fixes: https://github.com/OP-TEE/optee_os/issues/2707
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Reported-by: Chao Liu <chao.liu@amlogic.com>
Reviewed-by: Joakim Bech <joakim.bech@linaro.org>
Acked-by: Jens Wiklander <jens.wiklander@linaro.org>