diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c index 672e979782794737774bd3b6876d3c6e79602553..4066cb2b79cb0c756e5be4232deaa61fd6a38ba9 100644 --- a/drivers/tty/serial/imx.c +++ b/drivers/tty/serial/imx.c @@ -608,7 +608,7 @@ static void imx_uart_dma_tx(struct imx_port *sport) sport->tx_bytes = uart_circ_chars_pending(xmit); - if (xmit->tail < xmit->head) { + if (xmit->tail < xmit->head || xmit->head == 0) { sport->dma_tx_nents = 1; sg_init_one(sgl, xmit->buf + xmit->tail, sport->tx_bytes); } else {