Files
linux/drivers/mmc/host
Madhuparna Bhowmik 4e159a05ad mmc: via-sdmmc: Fix data race bug
[ Upstream commit 87d7ad089b ]

via_save_pcictrlreg() should be called with host->lock held
as it writes to pm_pcictrl_reg, otherwise there can be a race
condition between via_sd_suspend() and via_sdc_card_detect().
The same pattern is used in the function via_reset_pcictrl()
as well, where via_save_pcictrlreg() is called with host->lock
held.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Madhuparna Bhowmik <madhuparnabhowmik10@gmail.com>
Link: https://lore.kernel.org/r/20200822061528.7035-1-madhuparnabhowmik10@gmail.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-05-16 09:44:41 +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