mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-04 21:24:32 +02:00
wpa_supplicant/dpp: Avoid deadlock while deleting DPP task
Closes https://github.com/espressif/esp-idf/issues/8724
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user