aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/serial/bfin_5xx.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/serial/bfin_5xx.c')
-rw-r--r--drivers/serial/bfin_5xx.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/serial/bfin_5xx.c b/drivers/serial/bfin_5xx.c
index d7b271656a2d..12b11da40b49 100644
--- a/drivers/serial/bfin_5xx.c
+++ b/drivers/serial/bfin_5xx.c
@@ -401,9 +401,11 @@ static void bfin_serial_dma_rx_chars(struct bfin_serial_port *uart)
401 else 401 else
402 flg = TTY_NORMAL; 402 flg = TTY_NORMAL;
403 403
404 for (i = uart->rx_dma_buf.tail; i != uart->rx_dma_buf.head; i++) { 404 for (i = uart->rx_dma_buf.tail; ; i++) {
405 if (i >= UART_XMIT_SIZE) 405 if (i >= UART_XMIT_SIZE)
406 i = 0; 406 i = 0;
407 if (i == uart->rx_dma_buf.head)
408 break;
407 if (!uart_handle_sysrq_char(&uart->port, uart->rx_dma_buf.buf[i])) 409 if (!uart_handle_sysrq_char(&uart->port, uart->rx_dma_buf.buf[i]))
408 uart_insert_char(&uart->port, status, OE, 410 uart_insert_char(&uart->port, status, OE,
409 uart->rx_dma_buf.buf[i], flg); 411 uart->rx_dma_buf.buf[i], flg);