Back

dmaengine: sun6i-dma: Fix reclaim descriptors while terminating DMA

Published Sep 4, 2026

Description

When terminating DMA transfers, active descriptors are not properly reclaimed. Only cyclic descriptors were handled, leaving non-cyclic descriptors and their LLI chains to be permanently leaked.

Fix by using vchan_terminate_vdesc() which handles both cyclic and non-cyclic descriptors by adding them to desc_terminated queue for proper cleanup.

Add pchan->desc != pchan->done check to prevent double-adding completed descriptors, which would corrupt the list.

Affected products

Remediation

No remediation recorded yet.

Metrics

Weaknesses (0)

No CWE recorded.

References (8)

Change history (0)

No recorded changes yet.

Sources
CVE.org / MITRE
Status PUBLISHED
Assigner Linux
Published Sep 4, 2026
Updated Sep 4, 2026
Reserved Aug 26, 2026
NVD
Status Received
Modified Sep 4, 2026
Red Hat
Severity n/a
Public date n/a