linux-uconsole/drivers/dma/qcom
Jeffrey Hugo a0e406be17 dmaengine: qcom: bam_dma: Fix resource leak
commit 7667819385 upstream.

bam_dma_terminate_all() will leak resources if any of the transactions are
committed to the hardware (present in the desc fifo), and not complete.
Since bam_dma_terminate_all() does not cause the hardware to be updated,
the hardware will still operate on any previously committed transactions.
This can cause memory corruption if the memory for the transaction has been
reassigned, and will cause a sync issue between the BAM and its client(s).

Fix this by properly updating the hardware in bam_dma_terminate_all().

Fixes: e7c0fe2a5c ("dmaengine: add Qualcomm BAM dma driver")
Signed-off-by: Jeffrey Hugo <jeffrey.l.hugo@gmail.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20191017152606.34120-1-jeffrey.l.hugo@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-11-06 13:06:21 +01:00
..
bam_dma.c dmaengine: qcom: bam_dma: Fix resource leak 2019-11-06 13:06:21 +01:00
hidma.c dmaengine: qcom_hidma: initialize tx flags in hidma_prep_dma_* 2019-04-05 22:33:15 +02:00
hidma.h dmaengine: qcom_hidma: introduce memset support 2017-07-19 09:33:21 +05:30
hidma_dbg.c dmaengine: qcom_hidma: make pending_tre_count atomic 2016-11-03 18:55:44 +05:30
hidma_ll.c dmaengine: qcom_hidma: check pending interrupts 2017-12-12 11:02:43 +05:30
hidma_mgmt.c drivers: remove force dma flag from buses 2018-05-03 16:25:08 +02:00
hidma_mgmt.h
hidma_mgmt_sys.c dmaengine: qcom: simplify getting .drvdata 2018-04-22 11:48:44 +05:30
Kconfig
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00