spi_slave.c:fix DMA channel set to zero which might gets conflict with assert

close #2740
pull/4494/head
Andrew 2019-11-26 13:11:48 +08:00 zatwierdzone przez Angus Gratton
rodzic 54eeb77a56
commit 1669dc40d1
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -218,7 +218,7 @@ cleanup:
free(spihost[host]);
spihost[host] = NULL;
spicommon_periph_free(host);
spicommon_dma_chan_free(dma_chan);
if (dma_chan != 0) spicommon_dma_chan_free(dma_chan);
return ret;
}