Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b09c74ae authored by Huang Shijie's avatar Huang Shijie Committed by Greg Kroah-Hartman
Browse files

serial: imx: initialize the local variable



The slave_config is not initialized, so some of its fields may
be set with random data which may causes the failure in the following
dmaengine_prep_slave_sg().

This patch fixes this issue.

Signed-off-by: default avatarHuang Shijie <b32955@freescale.com>
Acked-by: default avatarShawn Guo <shawn.guo@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent dd910d98
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -979,7 +979,7 @@ static void imx_uart_dma_exit(struct imx_port *sport)

static int imx_uart_dma_init(struct imx_port *sport)
{
	struct dma_slave_config slave_config;
	struct dma_slave_config slave_config = {};
	struct device *dev = sport->port.dev;
	int ret;