Merge "tty: serial: msm: Don't read off end of tx fifo"
This commit is contained in:
commit
7998a3bdd8
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Reference in a new issue