]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
dmaengine: at_xdmac: unlock spin lock before return
authorNiklas Cassel <niklas.cassel@axis.com>
Tue, 7 Apr 2015 14:42:45 +0000 (16:42 +0200)
committerVinod Koul <vinod.koul@intel.com>
Fri, 17 Apr 2015 18:08:28 +0000 (23:38 +0530)
Signed-off-by: Niklas Cassel <niklass@axis.com>
Acked-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/at_xdmac.c

index 09e2825a547a2098cc28a0e3e20079c33c52fe09..6d18abf88cb505c5fdcff9ef6c8227e93bc39e23 100644 (file)
@@ -1155,8 +1155,10 @@ static int at_xdmac_device_resume(struct dma_chan *chan)
        dev_dbg(chan2dev(chan), "%s\n", __func__);
 
        spin_lock_bh(&atchan->lock);
-       if (!at_xdmac_chan_is_paused(atchan))
+       if (!at_xdmac_chan_is_paused(atchan)) {
+               spin_unlock_bh(&atchan->lock);
                return 0;
+       }
 
        at_xdmac_write(atxdmac, AT_XDMAC_GRWR, atchan->mask);
        clear_bit(AT_XDMAC_CHAN_IS_PAUSED, &atchan->status);