commit | b7ed82c06006da0bc59952c17a06cc97689ae189 | [log] [tgz] |
---|---|---|
author | Maochen Wang <maochen.wang@nxp.com> | Thu Jun 20 15:05:48 2024 +0800 |
committer | Anas Nashif <anas.nashif@intel.com> | Wed Jun 26 13:07:02 2024 -0400 |
tree | 539986eaf9336c7f9c450cefc79fd804052f0d5b | |
parent | e309f781ff166614067205d7b8810804032854fe [diff] |
modules: mbedtls: Fix init hang issue In device init phase, it will call _mbedtls_init before malloc_prepare as mbedtls has higher priority defined in SYS_INIT.. _mbedtls_init() will call psa_crypto_init() and malloc buffer, but z_malloc_heap is not initialized, which will cause device hang. Should call malloc_prepare() before _mbedtls_init to fix this issue, so decrease the priority of mbedtls to default 40. Signed-off-by: Maochen Wang <maochen.wang@nxp.com>