tmp_suning_uos_patched/drivers/dma
Petr Kulhavy 5ca9e7ce6e dmaengine: edma: fix memory leak when terminating running transfers
If edma_terminate_all() was called while a transfer was running (i.e. after
edma_execute() but before edma_callback()) the echan->edesc was not freed.

This was due to the fact that a running transfer is on none of the
vchan lists: desc_submitted, desc_issued, desc_completed (edma_execute()
removes it from the desc_issued list), so the vchan_dma_desc_free_list()
called at the end of edma_terminate_all() didn't find it and didn't free it.

This bug was found on an AM1808 based hardware (very similar to da850evm,
however using the second MMC/SD controller), where intense operations on the SD
card wasted the device 128MB RAM within a couple of days.

Peter Ujfalusi:
The issue is even more severe since it affects cyclic (audio) transfers as
well. In this case starting/stopping audio will results memory leak.

Signed-off-by: Petr Kulhavy <petr@barix.com>
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
CC: <stable@vger.kernel.org>
CC: <linux-omap@vger.kernel.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
2015-03-30 23:17:08 +05:30
..
bestcomm
dw dmaengine: dw: append MODULE_ALIAS for platform driver 2015-03-16 22:07:03 +05:30
ioat dmaengine: ioatdma: workaround for incorrect DMACAP register 2015-03-05 14:32:02 +05:30
ipu
ppc4xx
sh
xilinx
acpi-dma.c
amba-pl08x.c dmaengine: pl08x: Define capabilities for generic capabilities reporting 2015-03-18 21:34:29 +05:30
at_hdmac_regs.h dmaengine: at_hdmac: Fix calculation of the residual bytes 2015-03-13 14:58:31 +05:30
at_hdmac.c dmaengine: at_hdmac: Fix calculation of the residual bytes 2015-03-13 14:58:31 +05:30
at_xdmac.c dmaengine: at_xdmac: fix for chan conf simplification 2015-03-05 14:29:57 +05:30
bcm2835-dma.c
coh901318_lli.c
coh901318.c
coh901318.h
cppi41.c
dma-jz4740.c dmaengine: jz4740: Define capabilities 2015-03-30 23:00:23 +05:30
dmaengine.c
dmaengine.h
dmatest.c
edma.c dmaengine: edma: fix memory leak when terminating running transfers 2015-03-30 23:17:08 +05:30
ep93xx_dma.c
fsl-edma.c
fsldma.c
fsldma.h
img-mdc-dma.c
imx-dma.c
imx-sdma.c dmaengine: imx-sdma: switch to dynamic context mode after script loaded 2015-03-16 15:55:22 +05:30
intel_mid_dma_regs.h
intel_mid_dma.c
iop-adma.c
k3dma.c
Kconfig
Makefile
mic_x100_dma.c
mic_x100_dma.h
mmp_pdma.c dmaengine: mmp_pdma: fix warning about slave caps 2015-03-05 22:15:35 +05:30
mmp_tdma.c dma: mmp-tdma: refine dma disable and dma-pos update 2015-03-04 18:03:15 +05:30
moxart-dma.c
mpc512x_dma.c
mv_xor.c
mv_xor.h
mxs-dma.c
nbpfaxi.c
of-dma.c
omap-dma.c
pch_dma.c
pl330.c
qcom_bam_dma.c dmaengine: qcom_bam_dma: fix wrong register offsets 2015-03-05 22:07:12 +05:30
s3c24xx-dma.c
sa11x0-dma.c
sirf-dma.c
ste_dma40_ll.c
ste_dma40_ll.h
ste_dma40.c
sun6i-dma.c
tegra20-apb-dma.c
timb_dma.c
TODO
txx9dmac.c
txx9dmac.h
virt-dma.c
virt-dma.h