diff options
author | Amelie Delaunay <amelie.delaunay@foss.st.com> | 2022-10-17 15:14:13 +0200 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2022-10-19 19:01:19 +0530 |
commit | 5a637f83d96fc9f27e93385924e7253a5f5187bc (patch) | |
tree | bd298cf0cc0b34d36efef33c4baa96338e5a8abe /Kconfig | |
parent | 9abf2313adc1ca1b6180c508c25f22f9395cc780 (diff) |
dmaengine: stm32-mdma: memset stm32_mdma_chan_config struct before using it
New bool m2m_hw has been added at the end of stm32_mdma_chan_config struct
to support the STM32 DMA MDMA chaining.
m2m_hw is set true in stm32_mdma_slave_config() if peripheral_size is set,
but m2m_hw is never initialized false.
To ensure this case, and any further new update of the structure, memset it
to 0 before using it.
Fixes: 696874322771 ("dmaengine: stm32-mdma: add support to be triggered by STM32 DMA")
Signed-off-by: Amelie Delaunay <amelie.delaunay@foss.st.com>
Link: https://lore.kernel.org/r/20221017131413.202567-1-amelie.delaunay@foss.st.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'Kconfig')
0 files changed, 0 insertions, 0 deletions