Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Micky Ching <micky_ching@realsil.com.cn>
Cc: Samuel Ortiz <sameo@linux.intel.com> says:
Cc: Maxim Levitsky <maximlevitsky@gmail.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Alex Dubov <oakad@yahoo.com>
Cc: Roger Tseng <rogerable@realtek.com>
Cc: Wei WANG <wei_wang@realsil.com.cn>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Micky Ching and committed by
Linus Torvalds
b6226b45 7cd2b0a3

+1
+1
drivers/memstick/host/rtsx_pci_ms.c
··· 601 601 pcr->slots[RTSX_MS_CARD].card_event = NULL; 602 602 msh = host->msh; 603 603 host->eject = true; 604 + cancel_work_sync(&host->handle_req); 604 605 605 606 mutex_lock(&host->host_mutex); 606 607 if (host->req) {