diff --git a/drivers/dma/dma_stm32.c b/drivers/dma/dma_stm32.c index 3c678b5cc2b..1723246817e 100644 --- a/drivers/dma/dma_stm32.c +++ b/drivers/dma/dma_stm32.c @@ -391,6 +391,7 @@ int dma_stm32_disable_stream(DMA_TypeDef *dma, u32_t id) for (;;) { if (!stm32_dma_disable_stream(dma, id)) { + return 0; } /* After trying for 5 seconds, give up */ if (count++ > (5 * 1000)) {