Skip to content

Commit 3e7c1c7

Browse files
TomRita999gregkh
authored andcommitted
dmaengine: mediatek: Fix a flag reuse error in mtk_cqdma_tx_status()
[ Upstream commit 8eba218 ] 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: stable@vger.kernel.org Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202505270641.MStzJUfU-lkp@intel.com/ Signed-off-by: Qiu-ji Chen <chenqiuji666@gmail.com> Reviewed-by: Eugen Hristev <eugen.hristev@linaro.org> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Link: https://lore.kernel.org/r/20250606090017.5436-1-chenqiuji666@gmail.com Signed-off-by: Vinod Koul <vkoul@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent b521afb commit 3e7c1c7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/dma/mediatek/mtk-cqdma.c

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

452452
spin_lock_irqsave(&cvc->pc->lock, flags);
453-
spin_lock_irqsave(&cvc->vc.lock, flags);
453+
spin_lock(&cvc->vc.lock);
454454
vd = mtk_cqdma_find_active_desc(c, cookie);
455-
spin_unlock_irqrestore(&cvc->vc.lock, flags);
455+
spin_unlock(&cvc->vc.lock);
456456
spin_unlock_irqrestore(&cvc->pc->lock, flags);
457457

458458
if (vd) {

0 commit comments

Comments
 (0)