From: Niklas Cassel Date: Tue, 7 Apr 2015 14:42:45 +0000 (+0200) Subject: dmaengine: at_xdmac: unlock spin lock before return X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=0434a23198d6a271b70b75221c7568e60482c04e;p=deliverable%2Flinux.git dmaengine: at_xdmac: unlock spin lock before return Signed-off-by: Niklas Cassel Acked-by: Ludovic Desroches Signed-off-by: Vinod Koul --- diff --git a/drivers/dma/at_xdmac.c b/drivers/dma/at_xdmac.c index 09e2825a547a..6d18abf88cb5 100644 --- a/drivers/dma/at_xdmac.c +++ b/drivers/dma/at_xdmac.c @@ -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);