wpa_supplicant/dpp: Avoid deadlock while deleting DPP task

Closes https://github.com/espressif/esp-idf/issues/8724
This commit is contained in:
Nachiket Kukade 2022-04-14 16:51:24 +05:30
parent 282d3c6188
commit 8dea7cbed6

View File

@ -349,9 +349,7 @@ static void esp_dpp_task(void *pvParameters )
for (;;) {
if (xQueueReceive(s_dpp_evt_queue, &evt, portMAX_DELAY) == pdTRUE) {
if (evt->id < SIG_DPP_MAX) {
DPP_API_LOCK();
} else {
if (evt->id >= SIG_DPP_MAX) {
os_free(evt);
continue;
}
@ -394,7 +392,6 @@ static void esp_dpp_task(void *pvParameters )
}
os_free(evt);
DPP_API_UNLOCK();
if (task_del) {
break;