]> www.infradead.org Git - users/jedix/linux-maple.git/commit
serial: 8250_dma: terminate correct DMA in tx_dma_flush()
authorJohn Keeping <jkeeping@inmusicbrands.com>
Mon, 24 Feb 2025 12:18:30 +0000 (12:18 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Mar 2025 15:07:42 +0000 (08:07 -0700)
commita26503092c75abba70a0be2aa01145ecf90c2a22
treeebe7c76fb9bf440fd50b0a1b7a504cbe73dfa615
parent1d9ac5bd4eb10eecaa5b18128b9416239dc58d38
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: 9e512eaaf8f40 ("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>
drivers/tty/serial/8250/8250_dma.c