Merge branch 'bugfix/intr_alloc_missing_critical_section_exit' into 'master'

intr_alloc: Fixed missing portEXIT_CRITICAL_SAFE (GitHub PR)

Closes IDFGH-8403

See merge request espressif/esp-idf!20398
pull/9946/head
Darian 2022-09-29 19:08:33 +08:00
commit e925a1444a
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -801,6 +801,7 @@ esp_err_t IRAM_ATTR esp_intr_enable(intr_handle_t handle)
} else {
//Re-enable using cpu int ena reg
if (handle->vector_desc->cpu != esp_cpu_get_core_id()) {
portEXIT_CRITICAL_SAFE(&spinlock);
return ESP_ERR_INVALID_ARG; //Can only enable these ints on this cpu
}
ESP_INTR_ENABLE(handle->vector_desc->intno);