summaryrefslogtreecommitdiff
path: root/drivers/tty
diff options
context:
space:
mode:
authorHuang Shijie <b32955@freescale.com>2011-12-05 18:53:47 +0800
committerJason Liu <r64343@freescale.com>2012-07-20 13:18:31 +0800
commitf872dc1ad803c0e01377429da5455956dbb0972c (patch)
tree0b1bfd59af7a1dc71b140b8cf18ed2f982476ef8 /drivers/tty
parent942ceecfa98998e5775ea6f5beede34f1e5465d6 (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.c4
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);
}
/*