mirror of
https://kernel.googlesource.com/pub/scm/linux/kernel/git/stable/linux-stable.git
synced 2025-09-13 11:07:46 +10:00
dmaengine: mediatek: Fix a flag reuse error in mtk_cqdma_tx_status()
[ Upstream commit8eba218739
] Fixed a flag reuse bug in the mtk_cqdma_tx_status() function. Fixes:157ae5ffd7
("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>
This commit is contained in:
parent
1be4500cfa
commit
7d92591af8
@ -450,9 +450,9 @@ static enum dma_status mtk_cqdma_tx_status(struct dma_chan *c,
|
|||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
spin_lock_irqsave(&cvc->pc->lock, flags);
|
spin_lock_irqsave(&cvc->pc->lock, flags);
|
||||||
spin_lock_irqsave(&cvc->vc.lock, flags);
|
spin_lock(&cvc->vc.lock);
|
||||||
vd = mtk_cqdma_find_active_desc(c, cookie);
|
vd = mtk_cqdma_find_active_desc(c, cookie);
|
||||||
spin_unlock_irqrestore(&cvc->vc.lock, flags);
|
spin_unlock(&cvc->vc.lock);
|
||||||
spin_unlock_irqrestore(&cvc->pc->lock, flags);
|
spin_unlock_irqrestore(&cvc->pc->lock, flags);
|
||||||
|
|
||||||
if (vd) {
|
if (vd) {
|
||||||
|
Loading…
Reference in New Issue
Block a user