diff options
| author | Gao Pan <[email protected]> | 2016-01-18 07:44:01 +0000 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2016-02-19 00:12:52 +0000 |
| commit | ba4a3550e93415f4ff300810b8d0659949fea193 (patch) | |
| tree | c00efada7dfe0fc50c1e4d1f6a348245baf18f3a /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |
| parent | spi: imx: allow only WML aligned transfers to use DMA (diff) | |
| download | kernel-ba4a3550e93415f4ff300810b8d0659949fea193.tar.gz kernel-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 <[email protected]>
Reviewed-by: Fugang Duan <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions
