Home
last modified time | relevance | path

Searched hist:"31 ca2c63fdc0aee725cbd4f207c1256f5deaabde" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/tty/serial/
H A Datmel_serial.cdiff 31ca2c63fdc0aee725cbd4f207c1256f5deaabde Mon Mar 20 05:52:41 CDT 2017 Richard Genoud <richard.genoud@gmail.com> tty/serial: atmel: fix race condition (TX+DMA)

If uart_flush_buffer() is called between atmel_tx_dma() and
atmel_complete_tx_dma(), the circular buffer has been cleared, but not
atmel_port->tx_len.
That leads to a circular buffer overflow (dumping (UART_XMIT_SIZE -
atmel_port->tx_len) bytes).

Tested-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: Richard Genoud <richard.genoud@gmail.com>
Cc: stable <stable@vger.kernel.org> # 3.12+
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>