Merge "tty: serial: msm: Don't read off end of tx fifo"

This commit is contained in:
Linux Build Service Account 2016-08-16 16:34:35 -07:00 committed by Gerrit - the friendly Code Review server
commit 7998a3bdd8

View file

@ -891,7 +891,7 @@ static void msm_handle_tx(struct uart_port *port)
return;
}
pio_count = CIRC_CNT(xmit->head, xmit->tail, UART_XMIT_SIZE);
pio_count = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE);
dma_count = CIRC_CNT_TO_END(xmit->head, xmit->tail, UART_XMIT_SIZE);
dma_min = 1; /* Always DMA */