提交 b09c74ae 编写于 作者: H Huang Shijie 提交者: Greg Kroah-Hartman

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: NHuang Shijie <b32955@freescale.com>
Acked-by: NShawn Guo <shawn.guo@linaro.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 dd910d98
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册