android_kernel_sony_sdm845/drivers/dma/qcom
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jeffrey Hugo 202a60489a dmaengine: qcom: bam_dma: Fix resource leak
commit 7667819385457b4aeb5fac94f67f52ab52cc10d5 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-10 11:23:31 +01:00
..
bam_dma.c dmaengine: qcom: bam_dma: Fix resource leak 2019-11-10 11:23:31 +01:00
hidma.c dmaengine: qcom_hidma: assign channel cookie correctly 2019-04-05 22:29:14 +02:00
hidma.h dmaengine: qcom_hidma: add error reporting for tx_status 2016-08-31 21:27:32 +05:30
hidma_dbg.c dmaengine: qcom_hidma: add debugfs hooks 2016-05-14 11:54:45 +05:30
hidma_ll.c dmaengine: qcom_hidma: add error reporting for tx_status 2016-08-31 21:27:32 +05:30
hidma_mgmt.c dmaengine: qcom_hidma: use for_each_matching_node() macro 2016-07-24 11:46:05 +05:30
hidma_mgmt.h
hidma_mgmt_sys.c
Kconfig
Makefile dmaengine: qcom_hidma: add debugfs hooks 2016-05-14 11:54:45 +05:30