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: Huang Shijie <b32955@freescale.com>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Huang Shijie 2013-08-29 16:29:25 +08:00 коммит произвёл Greg Kroah-Hartman
Родитель dd910d98a2
Коммит b09c74ae12
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -979,7 +979,7 @@ static void imx_uart_dma_exit(struct imx_port *sport)
static int imx_uart_dma_init(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; struct device *dev = sport->port.dev;
int ret; int ret;