]> git.karo-electronics.de Git - karo-tx-linux.git/commit
dmaengine: at_xdmac: fix memory leak in interleaved mode
authorLudovic Desroches <ludovic.desroches@atmel.com>
Tue, 15 Sep 2015 13:38:24 +0000 (15:38 +0200)
committerVinod Koul <vinod.koul@intel.com>
Thu, 1 Oct 2015 02:00:56 +0000 (07:30 +0530)
commit62b5cb757f1d6c875293958535952dd38ff9e675
treee050298e04d5e4873b4a0064790a1e42199932cc
parent4e5385784e69e448efca0998aa188404d5e8d313
dmaengine: at_xdmac: fix memory leak in interleaved mode

In interleaved mode, when numf > 1, we have only one descriptor for the
transfer but this descriptor has to be added to the descs_list. If not,
when doing remove_xfer, the descriptor won't be put back in the
free_descs_list.

Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/at_xdmac.c