Skip to content

Commit c6273e1

Browse files
Sugar Zhangrkhuangtao
authored andcommitted
mmc: dw_mmc: initialize zero for dma_slave_config
This fixes uninitialized variable introduced by commit ddd2e87 ("dmaengine: pl330: add support for interlace size config") Change-Id: Ib1bbec21053fbcccf85a339d8ed7eec0bbe77727 Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
1 parent c249223 commit c6273e1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/mmc/host/dw_mmc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -748,6 +748,7 @@ static int dw_mci_edmac_start_dma(struct dw_mci *host,
748748
int ret = 0;
749749

750750
/* Set external dma config: burst size, burst width */
751+
memset(&cfg, 0, sizeof(cfg));
751752
cfg.dst_addr = host->phy_regs + fifo_offset;
752753
cfg.src_addr = cfg.dst_addr;
753754
cfg.dst_addr_width = DMA_SLAVE_BUSWIDTH_4_BYTES;

0 commit comments

Comments
 (0)