Searched hist:a7337d86ce0dcaf0f1eac95bd6090edb7e2b8659 (Results 1 – 1 of 1) sorted by relevance
| /optee_os/core/tee/ |
| H A D | tee_svc_storage.c | a7337d86ce0dcaf0f1eac95bd6090edb7e2b8659 Fri Oct 27 13:13:26 UTC 2017 Etienne Carriere <etienne.carriere@linaro.org> core: fix allocated object on object creation failure in svc storage
Changes syscall_storage_obj_create to give physical object ownership to the tee object layer only once storage is successfully inited for that object. Otherwise, if tee_svc_storage_init_file fails, the storage does not own the physical object and close method will not release the object.
This change fixes https://github.com/OP-TEE/optee_test/issues/232.
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
|