Skip to content

Commit ee63fab

Browse files
Rafał Hibnervinodkoul
authored andcommitted
dmaengine: zynqmp_dma: Move list_del inside zynqmp_dma_free_descriptor.
List elements are not formally removed from list during zynqmp_dma_reset. Signed-off-by: Rafal Hibner <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 6b41030 commit ee63fab

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/dma/xilinx/zynqmp_dma.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,7 @@ static void zynqmp_dma_free_descriptor(struct zynqmp_dma_chan *chan,
434434
struct zynqmp_dma_desc_sw *child, *next;
435435

436436
chan->desc_free_cnt++;
437+
list_del(&sdesc->node);
437438
list_add_tail(&sdesc->node, &chan->free_list);
438439
list_for_each_entry_safe(child, next, &sdesc->tx_list, node) {
439440
chan->desc_free_cnt++;
@@ -608,8 +609,6 @@ static void zynqmp_dma_chan_desc_cleanup(struct zynqmp_dma_chan *chan)
608609
dma_async_tx_callback callback;
609610
void *callback_param;
610611

611-
list_del(&desc->node);
612-
613612
callback = desc->async_tx.callback;
614613
callback_param = desc->async_tx.callback_param;
615614
if (callback) {

0 commit comments

Comments
 (0)