aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2019-02-07 17:19:38 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2019-02-07 17:19:38 +0000
commitc8dce5865b9c2bd77d67a7038005c9be0ea29ac9 (patch)
tree3ab27e6f537bb8357b752059ae884dba067e7018
parent41cc6d8a84eddb01702cd0ed133be4b8583f38de (diff)
downloadChibiOS-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
-rw-r--r--os/hal/ports/STM32/LLD/DMAv1/stm32_dma.c1
-rw-r--r--os/hal/ports/STM32/LLD/DMAv2/stm32_dma.c1
-rw-r--r--readme.txt1
3 files changed, 3 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++) {
diff --git a/readme.txt b/readme.txt
index ca8ff11a9..beeead0e3 100644
--- a/readme.txt
+++ b/readme.txt
@@ -74,6 +74,7 @@
*****************************************************************************
*** 19.1.1 ***
+- FIX: Fixed uninitialized variables in STM32 DMA drivers (bug #1010).
- FIX: Fixed wrong mcuconf.h in some testex demos related to STM32F407
(bug #1008).
- FIX: Fixed problem in STM32 mcuconf.h template files (bug #1007).