sdio_slave: fix the ret_queue crash issue when being reset by the master

pull/2534/head
michael 2018-09-25 20:29:46 +08:00
rodzic 46ad2c6ad0
commit d4071a7c19
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -965,7 +965,7 @@ static esp_err_t send_flush_data()
if (context.in_flight) { if (context.in_flight) {
buf_desc_t *desc = context.in_flight; buf_desc_t *desc = context.in_flight;
while(desc != NULL) { while(desc != NULL) {
xQueueSend(context.ret_queue, desc->arg, portMAX_DELAY); xQueueSend(context.ret_queue, &desc->arg, portMAX_DELAY);
last = desc; last = desc;
desc = STAILQ_NEXT(desc, qe); desc = STAILQ_NEXT(desc, qe);
} }
@ -980,7 +980,7 @@ static esp_err_t send_flush_data()
if (ret == ESP_OK) { if (ret == ESP_OK) {
buf_desc_t *desc = head; buf_desc_t *desc = head;
while(desc != NULL) { while(desc != NULL) {
xQueueSend(context.ret_queue, desc->arg, portMAX_DELAY); xQueueSend(context.ret_queue, &desc->arg, portMAX_DELAY);
last = desc; last = desc;
desc = STAILQ_NEXT(desc, qe); desc = STAILQ_NEXT(desc, qe);
} }