Files
linux/drivers/mmc/host
Chaotian Jing 0b86788cfd mmc: mediatek: fix race condition between msdc_request_timeout and irq
[ Upstream commit 0354ca6edd ]

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>
2023-05-16 10:46:37 +09:00
..
2012-11-28 12:28:18 -08:00
2009-03-24 21:30:03 +01:00
2023-05-15 12:06:47 +09:00
2014-09-24 10:13:09 +02:00
2015-06-01 09:06:48 +02:00
2016-09-26 21:31:33 +02:00
2017-03-30 09:41:24 +02:00
2023-05-16 09:44:41 +09:00
2015-10-26 15:59:53 +01:00
2007-07-26 01:53:31 +02:00
2015-03-23 14:13:49 +01:00