mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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 <[email protected]> Cc: Samuel Ortiz <[email protected]> says: Cc: Maxim Levitsky <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Cc: Alex Dubov <[email protected]> Cc: Roger Tseng <[email protected]> Cc: Wei WANG <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
7cd2b0a34a
commit
b6226b45c6
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
cancel_work_sync(&host->handle_req);
|
||||
|
||||
mutex_lock(&host->host_mutex);
|
||||
if (host->req) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue