summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorJon Hunter <jonathanh@nvidia.com>2015-05-05 17:17:59 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-05-10 20:12:19 +0300
commitad909b3f8b162a61ce9e32726dadb380e51f8949 (patch)
tree4451c62fde6d0ca954d6d329fbe63468fc55abeb /net
parentd92aca3a76662d2da8fe843ab124c45b47ea127d (diff)
downloadlinux-ad909b3f8b162a61ce9e32726dadb380e51f8949.tar.xz
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 'net')
0 files changed, 0 insertions, 0 deletions