From c19fd4e6e51c1f844ebdc93444df39508705cdba Mon Sep 17 00:00:00 2001 From: Jyri Sarha Date: Tue, 7 Jun 2022 15:33:50 +0300 Subject: [PATCH] probe: Initialize probe_dma_init() config stack variable Initialize probe_dma_init() config stack variable. Not all used members are initialized member by member so those members got their values from what ever there was in the stack. Signed-off-by: Jyri Sarha --- src/probe/probe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/probe/probe.c b/src/probe/probe.c index 265c6fe9f..9878727cc 100644 --- a/src/probe/probe.c +++ b/src/probe/probe.c @@ -113,7 +113,7 @@ static int probe_dma_buffer_init(struct probe_dma_buf *buffer, uint32_t size, */ static int probe_dma_init(struct probe_dma_ext *dma, uint32_t direction) { - struct dma_sg_config config; + struct dma_sg_config config = { 0 }; uint32_t elem_addr, addr_align; const uint32_t elem_size = sizeof(uint64_t) * DMA_ELEM_SIZE; const uint32_t elem_num = PROBE_BUFFER_LOCAL_SIZE / elem_size;