Skip to content

Commit 90c6eb1

Browse files
zhaynxpkartben
authored andcommitted
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 zephyrproject-rtos#86444 Signed-off-by: Ying Zhang <[email protected]>
1 parent 957647b commit 90c6eb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/random/random_ctr_drbg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
static const struct device *entropy_dev;
2525
static const unsigned char drbg_seed[] = CONFIG_CS_CTR_DRBG_PERSONALIZATION;
2626
static bool ctr_initialised;
27-
static struct k_mutex ctr_lock;
27+
static K_MUTEX_DEFINE(ctr_lock);
2828

2929
static mbedtls_ctr_drbg_context ctr_ctx;
3030

0 commit comments

Comments
 (0)