diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2019-02-07 17:19:38 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2019-02-07 17:19:38 +0000 |
commit | c8dce5865b9c2bd77d67a7038005c9be0ea29ac9 (patch) | |
tree | 3ab27e6f537bb8357b752059ae884dba067e7018 /os/hal | |
parent | 41cc6d8a84eddb01702cd0ed133be4b8583f38de (diff) | |
download | ChibiOS-c8dce5865b9c2bd77d67a7038005c9be0ea29ac9.tar.gz ChibiOS-c8dce5865b9c2bd77d67a7038005c9be0ea29ac9.tar.bz2 ChibiOS-c8dce5865b9c2bd77d67a7038005c9be0ea29ac9.zip |
Fixed bug #1010.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/stable_19.1.x@12641 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'os/hal')
-rw-r--r-- | os/hal/ports/STM32/LLD/DMAv1/stm32_dma.c | 1 | ||||
-rw-r--r-- | os/hal/ports/STM32/LLD/DMAv2/stm32_dma.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/os/hal/ports/STM32/LLD/DMAv1/stm32_dma.c b/os/hal/ports/STM32/LLD/DMAv1/stm32_dma.c index f8aa1d7dc..41c040b85 100644 --- a/os/hal/ports/STM32/LLD/DMAv1/stm32_dma.c +++ b/os/hal/ports/STM32/LLD/DMAv1/stm32_dma.c @@ -551,6 +551,7 @@ const stm32_dma_stream_t *dmaStreamAllocI(uint32_t id, #endif
else {
osalDbgCheck(false);
+ return NULL;
}
for (i = startid; i <= endid; i++) {
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++) {
|