mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
wpa_supplicant/dpp: Avoid deadlock while deleting DPP task
Closes https://github.com/espressif/esp-idf/issues/8724
This commit is contained in:
parent
282d3c6188
commit
8dea7cbed6
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user