mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
dmaengine: imx-dma: fix missing unlock on error in imxdma_xfer_desc()
commit 720dfd250e
upstream.
Add the missing unlock on the error handling path in function
imxdma_xfer_desc().
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
73cb409323
commit
7e8cec3211
1 changed files with 3 additions and 1 deletions
|
@ -473,8 +473,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;
|
||||
|
|
Loading…
Reference in a new issue