mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'contrib/github_pr_11402_v5.0' into 'release/v5.0'
esp_ds: ignore releasing mutex if not called from same task (GitHub PR) (v5.0) See merge request espressif/esp-idf!23841
This commit is contained in:
commit
400549eeba
@ -91,9 +91,11 @@ esp_err_t esp_ds_init_data_ctx(esp_ds_data_ctx_t *ds_data)
|
||||
|
||||
void esp_ds_release_ds_lock(void)
|
||||
{
|
||||
if (xSemaphoreGetMutexHolder(s_ds_lock) == xTaskGetCurrentTaskHandle()) {
|
||||
/* Give back the semaphore (DS lock) */
|
||||
xSemaphoreGive(s_ds_lock);
|
||||
}
|
||||
}
|
||||
|
||||
size_t esp_ds_get_keylen(void *ctx)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user