]> git.baikalelectronics.ru Git - kernel.git/commit
serial: imx: initialize the local variable
authorHuang Shijie <b32955@freescale.com>
Thu, 29 Aug 2013 08:29:25 +0000 (16:29 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 30 Aug 2013 21:11:28 +0000 (14:11 -0700)
commit390e8274d7d7b16b2885932cef1674185418e06b
tree23543f8ec506a42073b6b2dd1822c59ad477b159
parent4f70188fccb415dd62c0aa1239814a11f2c02fcc
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>
drivers/tty/serial/imx.c