diff options
author | Chaotian Jing <chaotian.jing@mediatek.com> | 2020-12-18 15:16:11 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-03-17 16:43:45 +0100 |
commit | 670ed36a0288e5fdb71785f18d6eb0586c957c46 (patch) | |
tree | 4ab4ad28cf842d69eb7d05e497b804601c7c378e /arch/powerpc/kernel/pci-common.c | |
parent | 1d086905b5db519d5de2a1d7f29836e245e32230 (diff) |
mmc: mediatek: fix race condition between msdc_request_timeout and irq
[ Upstream commit 0354ca6edd464a2cf332f390581977b8699ed081 ]
when get request SW timeout, if CMD/DAT xfer done irq coming right now,
then there is race between the msdc_request_timeout work and irq handler,
and the host->cmd and host->data may set to NULL in irq handler. also,
current flow ensure that only one path can go to msdc_request_done(), so
no need check the return value of cancel_delayed_work().
Signed-off-by: Chaotian Jing <chaotian.jing@mediatek.com>
Link: https://lore.kernel.org/r/20201218071611.12276-1-chaotian.jing@mediatek.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch/powerpc/kernel/pci-common.c')
0 files changed, 0 insertions, 0 deletions