Commit 73572eff authored by Austin Kim's avatar Austin Kim Committed by Zheng Zengkai
Browse files

dmaengine: sf-pdma: apply proper spinlock flags in sf_pdma_prep_dma_memcpy()

stable inclusion
from stable-v5.10.137
commit 37e1d474a3fb75eda4f0634e3b63c3b1d8b8a17e
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I60PLB

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=37e1d474a3fb75eda4f0634e3b63c3b1d8b8a17e



--------------------------------

[ Upstream commit 94b4cd7c ]

The second parameter of spinlock_irq[save/restore] function is flags,
which is the last input parameter of sf_pdma_prep_dma_memcpy().

So declare local variable 'iflags' to be used as the second parameter of
spinlock_irq[save/restore] function.

Signed-off-by: default avatarAustin Kim <austin.kim@lge.com>
Link: https://lore.kernel.org/r/20210611065336.GA1121@raspberrypi


Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
Reviewed-by: default avatarWei Li <liwei391@huawei.com>
parent b9959a09
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment