]> granicus.if.org Git - esp-idf/commitdiff
sdio_slave: fix the ret_queue crash issue when being reset by the master
authormichael <xiaoxufeng@espressif.com>
Tue, 25 Sep 2018 12:29:46 +0000 (20:29 +0800)
committermichael <xiaoxufeng@espressif.com>
Tue, 25 Sep 2018 12:30:25 +0000 (20:30 +0800)
components/driver/sdio_slave.c

index fad6910803a03f24c971d5a744dc3de7fdaf7b5a..9036131c2d2f15dbc7b249e0e3dce1201770a8d1 100644 (file)
@@ -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);
         }