diff options
| author | Gao Pan <[email protected]> | 2016-01-18 07:44:01 +0000 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2016-01-22 16:46:58 +0000 |
| commit | f8efca2f1783050368c71e978ee32d3aa692637b (patch) | |
| tree | 6b4032cdcd74759d85739bad456cd792c6ceebd0 /fs/jbd2/commit.c | |
| parent | Merge remote-tracking branches 'spi/topic/sun4i', 'spi/topic/topcliff-pch' an... (diff) | |
| download | kernel-f8efca2f1783050368c71e978ee32d3aa692637b.tar.gz kernel-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 <[email protected]>
Reviewed-by: Fugang Duan <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions
