]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/dma/at_hdmac.c
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/djbw/async_tx
[net-next-2.6.git] / drivers / dma / at_hdmac.c
index e88076022a7a8266ad12ea9e0cdf6d0279560972..a0f3e6a06e06532b3701ade73b110d823eec591f 100644 (file)
@@ -790,12 +790,12 @@ static int atc_control(struct dma_chan *chan, enum dma_ctrl_cmd cmd,
        list_splice_init(&atchan->queue, &list);
        list_splice_init(&atchan->active_list, &list);
 
-       spin_unlock_bh(&atchan->lock);
-
        /* Flush all pending and queued descriptors */
        list_for_each_entry_safe(desc, _desc, &list, desc_node)
                atc_chain_complete(atchan, desc);
 
+       spin_unlock_bh(&atchan->lock);
+
        return 0;
 }