diff options
author | Huang Shijie <b32955@freescale.com> | 2011-12-05 18:53:47 +0800 |
---|---|---|
committer | Jason Liu <r64343@freescale.com> | 2012-01-09 21:09:13 +0800 |
commit | 8e5c43995fe5346245cf7d6fdc64be1e847a1782 (patch) | |
tree | 4b18c6a03a87d370fe206290ddf414b24655890c /drivers/tty | |
parent | e3674ad783dedf5faea58bde3fefd4e11c6b002b (diff) |
ENGR00169433 IMX/UART : fix a bug in UART RX
The origin code did not check the running situation.
It will cause a NULL pointer issue.
This patch fixes it.
Signed-off-by: Huang Shijie <b32955@freescale.com>
Diffstat (limited to 'drivers/tty')
-rw-r--r-- | drivers/tty/serial/imx.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c index b9e169417c7b..f31fa1e16ca7 100644 --- a/drivers/tty/serial/imx.c +++ b/drivers/tty/serial/imx.c @@ -741,7 +741,9 @@ static void dma_rx_work(struct work_struct *w) tty_flip_buffer_push(tty); sport->rx_bytes = 0; } - start_rx_dma(sport); + + if (sport->dma_is_rxing) + start_rx_dma(sport); } /* |