From: Shengjiu Wang Date: Mon, 29 Mar 2021 02:22:12 +0000 (+0800) Subject: LF-3724-5: ASoC: fsl_asrc_m2m: clear peripheral_config X-Git-Tag: rel_imx_5.10.35_2.0.0-somdevices.0~246 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=d56dd8c76b6a81a5d6fd2091ab54bb1571f7b81e;p=linux.git LF-3724-5: ASoC: fsl_asrc_m2m: clear peripheral_config clear peripheral_config Signed-off-by: Shengjiu Wang Reviewed-by: Robin Gong --- diff --git a/sound/soc/fsl/fsl_asrc_m2m.c b/sound/soc/fsl/fsl_asrc_m2m.c index a4dcd9b25637..411f132c4b7d 100644 --- a/sound/soc/fsl/fsl_asrc_m2m.c +++ b/sound/soc/fsl/fsl_asrc_m2m.c @@ -188,6 +188,7 @@ static int fsl_asrc_dmaconfig(struct fsl_asrc_pair *pair, struct dma_chan *chan, return -EINVAL; } + memset(&slave_config, 0, sizeof(slave_config)); if (dir == IN) { slave_config.direction = DMA_MEM_TO_DEV; slave_config.dst_addr = dma_addr;