Home
last modified time | relevance | path

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

/optee_os/core/lib/libtomcrypt/
H A Dmpi_desc.cc225295bb86dae0610091bc0370670c980b5aec7 Tue Dec 20 15:38:43 UTC 2022 Jens Wiklander <jens.wiklander@linaro.org> core: LTC mpi_desc.c: use mempool_alloc() instead of malloc()

Replace the calls to malloc() and free() with calls to mempool_alloc()
and mempool_free() in order to guarantee that we don't have to return
TEE_ERROR_OUT_OF_MEMORY and cause a panic in the TA.

Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>