Merge branch 'fix/sdio_slave_reset_ret_queue_v3.1' into 'release/v3.1'

sdio_slave: fix the ret_queue crash issue when being reset by the master (Backport v3.1)

See merge request idf/esp-idf!3394
This commit is contained in:
Angus Gratton 2018-10-03 09:24:08 +08:00
commit d899bf029d

View File

@ -994,7 +994,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);
}
@ -1009,7 +1009,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);
}