diff options
author | Martin Povišer <povik+lin@cutebit.org> | 2023-02-24 16:22:21 +0100 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2023-03-31 14:47:21 +0200 |
commit | d9503be5a100c553731c0e8a82c7b4201e8a970c (patch) | |
tree | 184714a76c1a953cfde483a7516997c959d91cc3 /scripts/coccinelle/api/atomic_as_refcounter.cocci | |
parent | dmaengine: apple-admac: Set src_addr_widths capability (diff) | |
download | linux-d9503be5a100c553731c0e8a82c7b4201e8a970c.tar.xz linux-d9503be5a100c553731c0e8a82c7b4201e8a970c.zip |
dmaengine: apple-admac: Fix 'current_tx' not getting freed
In terminate_all we should queue up all submitted descriptors to be
freed. We do that for the content of the 'issued' and 'submitted' lists,
but the 'current_tx' descriptor falls through the cracks as it's
removed from the 'issued' list once it gets assigned to be the current
descriptor. Explicitly queue up freeing of the 'current_tx' descriptor
to address a memory leak that is otherwise present.
Fixes: b127315d9a78 ("dmaengine: apple-admac: Add Apple ADMAC driver")
Signed-off-by: Martin Povišer <povik+lin@cutebit.org>
Link: https://lore.kernel.org/r/20230224152222.26732-2-povik+lin@cutebit.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'scripts/coccinelle/api/atomic_as_refcounter.cocci')
0 files changed, 0 insertions, 0 deletions