]> www.infradead.org Git - users/dwmw2/linux.git/commit
mmc: tmio: Fixup runtime PM management during remove
authorUlf Hansson <ulf.hansson@linaro.org>
Fri, 13 Sep 2019 09:20:22 +0000 (11:20 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Sep 2019 07:10:56 +0000 (09:10 +0200)
commit46d1c96a1a5efcf64c46c8fd356a7f7ad05a2b37
tree26ce142fa58ee7e99d6a3e1dacf5984402be4ea9
parentf5e9862fedd0e4e35dc8dd8b49fbb1fd31e6f2bc
mmc: tmio: Fixup runtime PM management during remove

commit 87b5d602a1cc76169b8d81ec2c74c8d95d9350dc upstream.

Accessing the device when it may be runtime suspended is a bug, which is
the case in tmio_mmc_host_remove(). Let's fix the behaviour.

Cc: stable@vger.kernel.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Tested-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mmc/host/tmio_mmc_core.c