summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-pxa2xx-pxadma.c
diff options
context:
space:
mode:
authorLoic Poulain <loic.poulain@intel.com>2014-04-24 11:34:48 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-04-24 15:18:02 -0700
commitf8fd1b0350d3a4581125f5eda6528f5a2c5f9183 (patch)
treef350e27d766290b1a14ea59d5bc5d40e87f77eb2 /drivers/spi/spi-pxa2xx-pxadma.c
parentb08c9c317e3f7764a91d522cd031639ba42b98cc (diff)
downloadlinux-f8fd1b0350d3a4581125f5eda6528f5a2c5f9183.tar.gz
linux-f8fd1b0350d3a4581125f5eda6528f5a2c5f9183.tar.bz2
linux-f8fd1b0350d3a4581125f5eda6528f5a2c5f9183.zip
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>
Diffstat (limited to 'drivers/spi/spi-pxa2xx-pxadma.c')
0 files changed, 0 insertions, 0 deletions