Merge branch 'stable-4.8' of git://git.infradead.org/users/pcmoore/audit
[deliverable/linux.git] / drivers / dma / sun6i-dma.c
index 5065ca43facede040f92a2ac64fa35c147675fe3..3835fcde35456fb20e89e77d5b02644b98df4df8 100644 (file)
@@ -865,7 +865,7 @@ static enum dma_status sun6i_dma_tx_status(struct dma_chan *chan,
        size_t bytes = 0;
 
        ret = dma_cookie_status(chan, cookie, state);
-       if (ret == DMA_COMPLETE)
+       if (ret == DMA_COMPLETE || !state)
                return ret;
 
        spin_lock_irqsave(&vchan->vc.lock, flags);
This page took 0.027303 seconds and 5 git commands to generate.