Skip to content

Commit a265030

Browse files
johnkeepinggregkh
authored andcommitted
serial: 8250_dma: terminate correct DMA in tx_dma_flush()
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 <stable@kernel.org> Reported-by: Wentao Guan <guanwentao@uniontech.com> Signed-off-by: John Keeping <jkeeping@inmusicbrands.com> Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Link: https://lore.kernel.org/r/20250224121831.1429323-1-jkeeping@inmusicbrands.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 1d9ac5b commit a265030

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
@@ -162,7 +162,7 @@ void serial8250_tx_dma_flush(struct uart_8250_port *p)
162162
*/
163163
dma->tx_size = 0;
164164

165-
dmaengine_terminate_async(dma->rxchan);
165+
dmaengine_terminate_async(dma->txchan);
166166
}
167167

168168
int serial8250_rx_dma(struct uart_8250_port *p)

0 commit comments

Comments
 (0)