Skip to content

Commit 8eba218

Browse files
TomRita999vinodkoul
authored andcommitted
dmaengine: mediatek: Fix a flag reuse error in mtk_cqdma_tx_status()
Fixed a flag reuse bug in the mtk_cqdma_tx_status() function. Fixes: 157ae5f ("dmaengine: mediatek: Fix a possible deadlock error in mtk_cqdma_tx_status()") Cc: [email protected] Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Signed-off-by: Qiu-ji Chen <[email protected]> Reviewed-by: Eugen Hristev <[email protected]> Reviewed-by: AngeloGioacchino Del Regno <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 19272b3 commit 8eba218

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/dma/mediatek/mtk-cqdma.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,9 +449,9 @@ static enum dma_status mtk_cqdma_tx_status(struct dma_chan *c,
449449
return ret;
450450

451451
spin_lock_irqsave(&cvc->pc->lock, flags);
452-
spin_lock_irqsave(&cvc->vc.lock, flags);
452+
spin_lock(&cvc->vc.lock);
453453
vd = mtk_cqdma_find_active_desc(c, cookie);
454-
spin_unlock_irqrestore(&cvc->vc.lock, flags);
454+
spin_unlock(&cvc->vc.lock);
455455
spin_unlock_irqrestore(&cvc->pc->lock, flags);
456456

457457
if (vd) {

0 commit comments

Comments
 (0)