]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/dma/xgene-dma.c
Merge tag 'gvt-fixes-2017-05-11' of https://github.com/01org/gvt-linux into drm-intel...
[karo-tx-linux.git] / drivers / dma / xgene-dma.c
index d66ed11baaeca84d7578da34a5c994fe91522dd6..8b693b712d0f7a09e8ccd7975280024171a18be2 100644 (file)
@@ -606,12 +606,11 @@ static void xgene_dma_run_tx_complete_actions(struct xgene_dma_chan *chan,
                return;
 
        dma_cookie_complete(tx);
+       dma_descriptor_unmap(tx);
 
        /* Run the link descriptor callback function */
        dmaengine_desc_get_callback_invoke(tx, NULL);
 
-       dma_descriptor_unmap(tx);
-
        /* Run any dependencies */
        dma_run_dependencies(tx);
 }