Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 720dfd25 authored by Wei Yongjun's avatar Wei Yongjun Committed by Vinod Koul
Browse files

dmaengine: imx-dma: fix missing unlock on error in imxdma_xfer_desc()



Add the missing unlock on the error handling path in function
imxdma_xfer_desc().

Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: default avatarVinod Koul <vinod.koul@linux.intel.com>
parent ddffeb8c
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -474,8 +474,10 @@ static int imxdma_xfer_desc(struct imxdma_desc *d)
			slot = i;
			break;
		}
		if (slot < 0)
		if (slot < 0) {
			spin_unlock_irqrestore(&imxdma->lock, flags);
			return -EBUSY;
		}

		imxdma->slots_2d[slot].xsr = d->x;
		imxdma->slots_2d[slot].ysr = d->y;