aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/console_struct.h
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 /include/linux/console_struct.h
parentserial: tegra: Correct shutdown of UARTs (diff)
downloadlinux-dev-ad909b3f8b162a61ce9e32726dadb380e51f8949.tar.xz
linux-dev-ad909b3f8b162a61ce9e32726dadb380e51f8949.zip
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 'include/linux/console_struct.h')
0 files changed, 0 insertions, 0 deletions