diff options
author | 2016-01-18 15:44:01 +0800 | |
---|---|---|
committer | 2016-02-19 00:12:52 +0000 | |
commit | ba4a3550e93415f4ff300810b8d0659949fea193 (patch) | |
tree | c00efada7dfe0fc50c1e4d1f6a348245baf18f3a /tools/perf/scripts/python/stackcollapse.py | |
parent | spi: imx: allow only WML aligned transfers to use DMA (diff) | |
download | linux-dev-ba4a3550e93415f4ff300810b8d0659949fea193.tar.xz linux-dev-ba4a3550e93415f4ff300810b8d0659949fea193.zip |
spi: imx: fix spi resource leak with dma transfer
In spi_imx_dma_transfer(), when desc_rx = dmaengine_prep_slave_sg()
fails, the context goes to label no_dma and then return. However,
the memory allocated for desc_tx has not been freed yet, which leads
to resource leak.
Signed-off-by: Gao Pan <pandy.gao@nxp.com>
Reviewed-by: Fugang Duan <B38611@freescale.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions