Commit b6226b45 authored by Micky Ching's avatar Micky Ching Committed by Linus Torvalds

drivers/memstick/host/rtsx_pci_ms.c: add cancel_work when remove driver

Add cancel_work_sync() in rtsx_pci_ms_drv_remove() to cancel pending
request work when removing the driver.
Signed-off-by: default avatarMicky Ching <>
Cc: Samuel Ortiz <> says:
Cc: Maxim Levitsky <>
Cc: Greg Kroah-Hartman <>
Cc: Alex Dubov <>
Cc: Roger Tseng <>
Cc: Wei WANG <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 7cd2b0a3
......@@ -601,6 +601,7 @@ static int rtsx_pci_ms_drv_remove(struct platform_device *pdev)
pcr->slots[RTSX_MS_CARD].card_event = NULL;
msh = host->msh;
host->eject = true;
if (host->req) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment