linux_dsm_epyc7002/drivers/mmc
Anatolij Gustschin 70aa610959 mmc: mxcmmc: fix race conditions for host->req and host->data access
mxcmci_dma_callback() is invoked by DMA drivers in soft-irq
context and can be interrupted by the mxcmci_irq() interrupt
which can finish the mmc request or data transfer and set
host->req or host->data pointers to NULL. Then mxcmci_data_done()
crashes with a null pointer dereferences. Protect all accesses
to host->req and host->data by spin locks.

Also check host->data pointer in mxcmci_watchdog() before
dereferencing it.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Chris Ball <cjb@laptop.org>
2013-04-12 15:13:13 -04:00
..
card mmc: block: fix the host's claim-release in special request 2013-03-22 13:29:36 -04:00
core mmc: core: call pm_runtime_put_noidle in pm_runtime_get_sync failed case 2013-04-12 14:15:04 -04:00
host mmc: mxcmmc: fix race conditions for host->req and host->data access 2013-04-12 15:13:13 -04:00
Kconfig mmc: explicitly mention SDIO support in Kconfig 2008-10-12 11:04:36 +02:00
Makefile mmc: sdhci-pci: add platform data 2012-01-11 23:58:47 -05:00