mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 10:47:19 +02:00
Merge branch 'contrib/github_pr_11402_v4.3' into 'release/v4.3'
esp_ds: ignore releasing mutex if not called from same task (GitHub PR) (v4.3) See merge request espressif/esp-idf!24315
This commit is contained in:
@ -100,8 +100,10 @@ esp_err_t esp_ds_init_data_ctx(esp_ds_data_ctx_t *ds_data)
|
|||||||
|
|
||||||
void esp_ds_release_ds_lock(void)
|
void esp_ds_release_ds_lock(void)
|
||||||
{
|
{
|
||||||
/* Give back the semaphore (DS lock) */
|
if (xSemaphoreGetMutexHolder(s_ds_lock) == xTaskGetCurrentTaskHandle()) {
|
||||||
xSemaphoreGive(s_ds_lock);
|
/* Give back the semaphore (DS lock) */
|
||||||
|
xSemaphoreGive(s_ds_lock);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t esp_ds_get_keylen(void *ctx)
|
size_t esp_ds_get_keylen(void *ctx)
|
||||||
|
Reference in New Issue
Block a user