summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-fsl-spi.c
diff options
context:
space:
mode:
authorGao Pan <pandy.gao@nxp.com>2016-01-18 15:44:01 +0800
committerMark Brown <broonie@kernel.org>2016-01-22 16:46:58 +0000
commitf8efca2f1783050368c71e978ee32d3aa692637b (patch)
tree6b4032cdcd74759d85739bad456cd792c6ceebd0 /drivers/spi/spi-fsl-spi.c
parentcabeea980879c2c701b0bd03f145c9f7dae17a63 (diff)
downloadtalos-obmc-linux-f8efca2f1783050368c71e978ee32d3aa692637b.tar.gz
talos-obmc-linux-f8efca2f1783050368c71e978ee32d3aa692637b.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 'drivers/spi/spi-fsl-spi.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud