Skip to content

Commit

Permalink
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 #86444

Signed-off-by: Ying Zhang <ying.zhang_2@nxp.com>
  • Loading branch information
zhaynxp authored and kartben committed Mar 4, 2025
1 parent 957647b commit 90c6eb1
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 90c6eb1

Please sign in to comment.