summaryrefslogtreecommitdiff
path: root/drivers/clk/mvebu/armada-375.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-02-19 00:12:52 +0000
commitba4a3550e93415f4ff300810b8d0659949fea193 (patch)
treec00efada7dfe0fc50c1e4d1f6a348245baf18f3a /drivers/clk/mvebu/armada-375.c
parent390f0ffe92aea878b763c7fd8afd1dff62e0d20b (diff)
downloadlwn-ba4a3550e93415f4ff300810b8d0659949fea193.tar.gz
lwn-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 'drivers/clk/mvebu/armada-375.c')
0 files changed, 0 insertions, 0 deletions