aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/STM32/LLD/DMAv2/stm32_dma.c
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/ports/STM32/LLD/DMAv2/stm32_dma.c')
-rw-r--r--os/hal/ports/STM32/LLD/DMAv2/stm32_dma.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/os/hal/ports/STM32/LLD/DMAv2/stm32_dma.c b/os/hal/ports/STM32/LLD/DMAv2/stm32_dma.c
index 9c9b65fbe..58f3bc908 100644
--- a/os/hal/ports/STM32/LLD/DMAv2/stm32_dma.c
+++ b/os/hal/ports/STM32/LLD/DMAv2/stm32_dma.c
@@ -516,6 +516,7 @@ const stm32_dma_stream_t *dmaStreamAllocI(uint32_t id,
#endif
else {
osalDbgCheck(false);
+ return NULL;
}
for (i = startid; i <= endid; i++) {