diff options
author | Jon Hunter <jonathanh@nvidia.com> | 2015-05-20 14:21:04 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-05-24 22:53:44 +0300 |
commit | 8f8e48f4d6f722a35aac9c990fa54f7bb07b4d5b (patch) | |
tree | 4b10f5f71da1c5de41e7cc4f51b6ffc2780d59c3 /drivers/tty/synclink_gt.c | |
parent | c35b49b7166b8054ce33827d5dfd8d6041f5b4df (diff) | |
download | linux-8f8e48f4d6f722a35aac9c990fa54f7bb07b4d5b.tar.xz |
serial: tegra: Fix memory leak on DMA setup failure
If the call to dmaengine_slave_config() fails, then the DMA buffer will
not be freed/unmapped. Fix this by moving the code that stores the
address of the buffer in the tegra_uart_port structure to before the
call to dmaengine_slave_config().
Reported-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/synclink_gt.c')
0 files changed, 0 insertions, 0 deletions