Martin Povišer d9503be5a1 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>
2023-03-31 18:17:21 +05:30
..
2023-02-24 17:18:54 -08:00
2023-02-24 17:18:54 -08:00
2023-02-24 17:18:54 -08:00
2023-02-24 17:18:54 -08:00
2023-02-24 17:18:54 -08:00
2022-09-29 12:24:16 +05:30
2023-02-24 17:18:54 -08:00
2023-02-24 17:18:54 -08:00
2023-01-16 09:26:06 +01:00
2023-02-24 17:18:54 -08:00
2022-07-06 10:50:43 +05:30
2022-09-05 12:01:54 +05:30
2021-12-13 13:18:48 +05:30
2023-02-24 17:18:54 -08:00