projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7cd2b0a
)
drivers/memstick/host/rtsx_pci_ms.c: add cancel_work when remove driver
author
Micky Ching
<
[email protected]
>
Mon, 23 Jun 2014 20:22:04 +0000
(13:22 -0700)
committer
Linus Torvalds
<
[email protected]
>
Mon, 23 Jun 2014 23:47:44 +0000
(16:47 -0700)
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]
>
drivers/memstick/host/rtsx_pci_ms.c
patch
|
blob
|
history
diff --git
a/drivers/memstick/host/rtsx_pci_ms.c
b/drivers/memstick/host/rtsx_pci_ms.c
index 2a635b6fdaf7274ac64b901376cbb1a496d21a4a..c880ba6857541a172bf3529329db54a03730dc3c 100644
(file)
--- a/
drivers/memstick/host/rtsx_pci_ms.c
+++ b/
drivers/memstick/host/rtsx_pci_ms.c
@@
-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) {