summaryrefslogtreecommitdiffstats
path: root/drivers/tty/vt/vt.c
diff options
context:
space:
mode:
authorJon Hunter <jonathanh@nvidia.com>2015-05-05 15:17:59 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-05-10 19:12:19 +0200
commitad909b3f8b162a61ce9e32726dadb380e51f8949 (patch)
tree4451c62fde6d0ca954d6d329fbe63468fc55abeb /drivers/tty/vt/vt.c
parentd92aca3a76662d2da8fe843ab124c45b47ea127d (diff)
downloadop-kernel-dev-ad909b3f8b162a61ce9e32726dadb380e51f8949.zip
op-kernel-dev-ad909b3f8b162a61ce9e32726dadb380e51f8949.tar.gz
serial: tegra: Correct error handling on DMA setup
Function tegra_uart_dma_channel_allocate() does not check that dma_map_single() mapped the DMA buffer correctly. Add a check for this and appropriate error handling. Furthermore, if dmaengine_slave_config() (called by tegra_uart_dma_channel_allocate()) fails, then memory allocated/mapped is not freed/unmapped. Therefore, call tegra_uart_dma_channel_free() instead of just dma_release_channel() if dmaengine_slave_config() fails. Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/vt/vt.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud