]> git.baikalelectronics.ru Git - kernel.git/commit
memstick: Skip allocating card when removing host
authorKai-Heng Feng <kai.heng.feng@canonical.com>
Fri, 25 Sep 2020 08:49:51 +0000 (16:49 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 28 Sep 2020 10:16:13 +0000 (12:16 +0200)
commitdef789a042215a0e19c4b4bd892de5c76ddc6753
tree4244bf7dba14ecfe300da986c6e59ba19f39d748
parent965c5d9e3ac8913244b12f17b00aa9667b59478c
memstick: Skip allocating card when removing host

After commit 39de4de9f2ef ("memstick: rtsx_usb_ms: Support runtime power
management"), removing module rtsx_usb_ms will be stuck.

The deadlock is caused by powering on and powering off at the same time,
the former one is when memstick_check() is flushed, and the later is called
by memstick_remove_host().

Soe let's skip allocating card to prevent this issue.

Fixes: 39de4de9f2ef ("memstick: rtsx_usb_ms: Support runtime power management")
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Link: https://lore.kernel.org/r/20200925084952.13220-1-kai.heng.feng@canonical.com
Cc: stable@vger.kernel.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/memstick/core/memstick.c
include/linux/memstick.h