Skip to content

Commit

Permalink
samples: subsys: random: Correct Mutex define
Browse files Browse the repository at this point in the history
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 zephyrproject-rtos#86444

Signed-off-by: Ying Zhang <[email protected]>
  • Loading branch information
zhaynxp committed Feb 28, 2025
1 parent 210adaf commit bb125f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subsys/random/random_ctr_drbg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit bb125f9

Please sign in to comment.