Searched hist:f8fd1b0350d3a4581125f5eda6528f5a2c5f9183 (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/tty/serial/8250/ |
H A D | 8250_dma.c | diff f8fd1b0350d3a4581125f5eda6528f5a2c5f9183 Thu Apr 24 04:34:48 CDT 2014 Loic Poulain <loic.poulain@intel.com> serial: 8250: Fix thread unsafe __dma_tx_complete function
__dma_tx_complete is not protected against concurrent call of serial8250_tx_dma. it can lead to circular tail index corruption or parallel call of serial_tx_dma on the same data portion.
This patch fixes this issue by holding the port lock.
Signed-off-by: Loic Poulain <loic.poulain@intel.com> Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Cc: stable <stable@vger.kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
|