From d4071a7c19331faafa97c9ac3475272d86936eb1 Mon Sep 17 00:00:00 2001 From: michael Date: Tue, 25 Sep 2018 20:29:46 +0800 Subject: [PATCH] sdio_slave: fix the ret_queue crash issue when being reset by the master --- components/driver/sdio_slave.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/driver/sdio_slave.c b/components/driver/sdio_slave.c index fad6910803..9036131c2d 100644 --- a/components/driver/sdio_slave.c +++ b/components/driver/sdio_slave.c @@ -965,7 +965,7 @@ static esp_err_t send_flush_data() if (context.in_flight) { buf_desc_t *desc = context.in_flight; while(desc != NULL) { - xQueueSend(context.ret_queue, desc->arg, portMAX_DELAY); + xQueueSend(context.ret_queue, &desc->arg, portMAX_DELAY); last = desc; desc = STAILQ_NEXT(desc, qe); } @@ -980,7 +980,7 @@ static esp_err_t send_flush_data() if (ret == ESP_OK) { buf_desc_t *desc = head; while(desc != NULL) { - xQueueSend(context.ret_queue, desc->arg, portMAX_DELAY); + xQueueSend(context.ret_queue, &desc->arg, portMAX_DELAY); last = desc; desc = STAILQ_NEXT(desc, qe); }