summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorJia-Ju Bai <baijiaju1990@gmail.com>2018-11-06 11:33:48 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-12-21 10:34:35 +0100
commit514c17c9a1e0540044976da692f335de8021509e (patch)
treea937284f5127ce8b6b9401c1039267159851230b /include/linux
parent13c9e047933036011121e814e806235704f3a2c5 (diff)
dmaengine: coh901318: Fix a double-lock bug
[ Upstream commit 627469e4445b9b12e0229b3bdf8564d5ce384dd7 ] The function coh901318_alloc_chan_resources() calls spin_lock_irqsave() before calling coh901318_config(). But coh901318_config() calls spin_lock_irqsave() again in its definition, which may cause a double-lock bug. Because coh901318_config() is only called by coh901318_alloc_chan_resources(), the bug fix is to remove the calls to spin-lock and -unlock functions in coh901318_config(). Signed-off-by: Jia-Ju Bai <baijiaju1990@gmail.com> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Vinod Koul <vkoul@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions