Skip to content

Commit 0c99f5e

Browse files
johnkeepingvijay-suman
authored andcommitted
serial: 8250_dma: terminate correct DMA in tx_dma_flush()
commit a26503092c75abba70a0be2aa01145ecf90c2a22 upstream. When flushing transmit side DMA, it is the transmit channel that should be terminated, not the receive channel. Fixes: 9e512ea ("serial: 8250: Fix fifo underflow on flush") Cc: stable <[email protected]> Reported-by: Wentao Guan <[email protected]> Signed-off-by: John Keeping <[email protected]> Reviewed-by: Ilpo Järvinen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]> (cherry picked from commit 03c4c633a0226341067698975f52a55fe6d3abeb) FOF: 0525 Signed-off-by: Vijayendra Suman <[email protected]>
1 parent f78c28d commit 0c99f5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/tty/serial/8250/8250_dma.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ void serial8250_tx_dma_flush(struct uart_8250_port *p)
150150
*/
151151
dma->tx_size = 0;
152152

153-
dmaengine_terminate_async(dma->rxchan);
153+
dmaengine_terminate_async(dma->txchan);
154154
}
155155

156156
int serial8250_rx_dma(struct uart_8250_port *p)

0 commit comments

Comments
 (0)