]> git.ipfire.org Git - thirdparty/kernel/stable.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>
Mon, 7 Apr 2025 08:08:37 +0000 (10:08 +0200)
commita964484a3537f121edd94a0dfbe6ac853c0462cf
treeba4bbc1d1773570c3d48f7b81c929f66e7e7374d
parent5f9176f82ec7d9f66f3892a330126de4ef66c2d6
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: 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