mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-07 22:54:33 +02:00
bugfix: fix wrong lock in sleep retention entry destroy
This commit is contained in:
@@ -182,7 +182,6 @@ static void sleep_retention_entries_stats(void)
|
||||
#if REGDMA_LINK_DBG
|
||||
void sleep_retention_entries_show_memories(void)
|
||||
{
|
||||
if (&s_retention.lock) {
|
||||
_lock_acquire_recursive(&s_retention.lock);
|
||||
if (s_retention.highpri >= SLEEP_RETENTION_REGDMA_LINK_HIGHEST_PRIORITY && s_retention.highpri <= SLEEP_RETENTION_REGDMA_LINK_LOWEST_PRIORITY) {
|
||||
for (int entry = 0; entry < ARRAY_SIZE(s_retention.lists[s_retention.highpri].entries); entry++) {
|
||||
@@ -192,7 +191,6 @@ void sleep_retention_entries_show_memories(void)
|
||||
}
|
||||
_lock_release_recursive(&s_retention.lock);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
void * sleep_retention_find_link_by_id(int id)
|
||||
@@ -343,7 +341,7 @@ void sleep_retention_entries_destroy(int module)
|
||||
s_retention.lock = NULL;
|
||||
return;
|
||||
}
|
||||
_lock_acquire_recursive(&s_retention.lock);
|
||||
_lock_release_recursive(&s_retention.lock);
|
||||
}
|
||||
|
||||
static esp_err_t sleep_retention_entries_create_impl(const sleep_retention_entries_config_t retent[], int num, regdma_link_priority_t priority, int module)
|
||||
|
Reference in New Issue
Block a user