Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libteec: Handle NULL pointer when using TEEC_TempMemoryReference
If TEE or TEE driver doesn't support the capability "TEE_GEN_CAP_MEMREF_NULL", it can't handle NULL pointers. The cases where NULL pointer is passed with size 0 as TEEC_TempMemoryReference parameter is a valid use case and should not return error. In such cases, use TEEC_AllocateSharedMemory() instead of TEEC_RegisterSharedMemory() to allocate a block of shared memory. Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Ruchika Gupta <ruchika.gupta@linaro.org>
- Loading branch information