mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
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:
commit
d899bf029d
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user