random: Correct Mutex define

Correct Mutex ctr_lock defination as the wrong defination lead to
sysworkq task not acquiring this mutex during bt init, which lead to
BLE didn't work as described in issue https://github.com/zephyrproject-rtos/zephyr/issues/86444

Signed-off-by: Ying Zhang <ying.zhang_2@nxp.com>
This commit is contained in:
Ying Zhang 2025-02-28 08:47:48 +01:00 committed by Benjamin Cabé
commit 90c6eb1da7

View file

@ -24,7 +24,7 @@
static const struct device *entropy_dev;
static const unsigned char drbg_seed[] = CONFIG_CS_CTR_DRBG_PERSONALIZATION;
static bool ctr_initialised;
static struct k_mutex ctr_lock;
static K_MUTEX_DEFINE(ctr_lock);
static mbedtls_ctr_drbg_context ctr_ctx;