linux/drivers/mmc
Fabio Estevam cd9e47dc4a mmc: mxs: Initialize the spinlock prior to using it
commit f91346e8b5 upstream.

An interrupt may occur right after devm_request_irq() is called and
prior to the spinlock initialization, leading to a kernel oops,
as the interrupt handler uses the spinlock.

In order to prevent this problem, move the spinlock initialization
prior to requesting the interrupts.

Fixes: e4243f13d1 (mmc: mxs-mmc: add mmc host driver for i.MX23/28)
Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Reviewed-by: Marek Vasut <marex@denx.de>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
[bwh: Backported to 3.16 adjust context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
History 2017-02-23 03:54:30 +00:00
..
card mmc: core: Annotate cmd_hdr as __le32 2017-02-23 03:54:14 +00:00
core mmc: longer timeout for long read time quirk 2016-08-22 22:38:04 +01:00
host mmc: mxs: Initialize the spinlock prior to using it 2017-02-23 03:54:30 +00: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