aboutsummaryrefslogtreecommitdiff
path: root/arch/mips/mti-malta/malta-memory.c
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2014-08-06 14:59:03 +0200
committerMark Brown <broonie@linaro.org>2014-08-16 17:13:14 -0500
commit3e81b59208fa4697c6c3b6eefb92892b47f8b1e7 (patch)
tree9553dd8862a015ff91b0d26e24bc3be042552b9b /arch/mips/mti-malta/malta-memory.c
parent7d1311b93e58ed55f3a31cc8f94c4b8fe988a2b9 (diff)
downloadlinux-stericsson-3e81b59208fa4697c6c3b6eefb92892b47f8b1e7.tar.gz
spi: sh-msiof: Fix leaking of unused DMA descriptors
If dmaengine_prep_slave_sg() or dmaengine_submit() fail, we may leak unused DMA descriptors. As per Documentation/dmaengine.txt, once a DMA descriptor has been obtained, it must be submitted. Hence: - First prepare and submit all DMA descriptors, - Prepare the SPI controller for DMA, - Start DMA by calling dma_async_issue_pending(), - Make sure to call dmaengine_terminate_all() on all descriptors that haven't completed. Reported-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'arch/mips/mti-malta/malta-memory.c')
0 files changed, 0 insertions, 0 deletions