diff options
author | Jeffrey Hugo <[email protected]> | 2019-10-17 08:26:06 -0700 |
---|---|---|
committer | Vinod Koul <[email protected]> | 2019-10-18 13:27:58 +0530 |
commit | 7667819385457b4aeb5fac94f67f52ab52cc10d5 (patch) | |
tree | ca96fd127e397b9a1f868b3dc71c1bf4fef915a6 /tools/perf/util/trace-event-scripting.c | |
parent | ec1ac309596a7bdf206743b092748205f6cd5720 (diff) |
dmaengine: qcom: bam_dma: Fix resource leak
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: e7c0fe2a5c84 ("dmaengine: add Qualcomm BAM dma driver")
Signed-off-by: Jeffrey Hugo <[email protected]>
Cc: [email protected]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions