]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: dw_mmc: Don't crash if we get an interrupt before slot has initted
authorDoug Anderson <dianders@chromium.org>
Wed, 25 Feb 2015 18:11:52 +0000 (10:11 -0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 23 Mar 2015 13:13:31 +0000 (14:13 +0100)
commit1291de561fafd8cb38ac9f71a2c6b29854e94711
tree517d8da70fbccc97f8f77918617cf148d6c37e0b
parentf6fd49313fbea570476df08f31e6b772e95ae96c
mmc: dw_mmc: Don't crash if we get an interrupt before slot has initted

It's unlikely that this is really needed on any single-slot systems
where we disable card detects until the end of probe, but it still
seems safer to check to make sure that a slot has been initted before
we try to dereference it to find the SDIO interrupt mask.

Signed-off-by: Doug Anderson <dianders@chromium.org>
Tested-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/dw_mmc.c