dmaengine: pxa_dma: fix initial list move
[firefly-linux-kernel-4.4.55.git] / drivers / dma / pxa_dma.c
index 5cb61ce01036fef2dc5248d11f99859e2dcb9d86..c6723ecd58482d0220d23b9b05f4a2ed1f8f4660 100644 (file)
@@ -887,6 +887,7 @@ pxad_tx_prep(struct virt_dma_chan *vc, struct virt_dma_desc *vd,
        struct dma_async_tx_descriptor *tx;
        struct pxad_chan *chan = container_of(vc, struct pxad_chan, vc);
 
+       INIT_LIST_HEAD(&vd->node);
        tx = vchan_tx_prep(vc, vd, tx_flags);
        tx->tx_submit = pxad_tx_submit;
        dev_dbg(&chan->vc.chan.dev->device,