git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ubi: fastmap: Cancel work upon detach
[sfrench/cifs-2.6.git]
/
drivers
/
mtd
/
ubi
/
build.c
diff --git
a/drivers/mtd/ubi/build.c
b/drivers/mtd/ubi/build.c
index 753494e042d51cdbfb22b93fc16c58fa43002ec0..74425af840d646af7458d0e571704c58eb06a18c 100644
(file)
--- a/
drivers/mtd/ubi/build.c
+++ b/
drivers/mtd/ubi/build.c
@@
-1091,6
+1091,9
@@
int ubi_detach_mtd_dev(int ubi_num, int anyway)
if (ubi->bgt_thread)
kthread_stop(ubi->bgt_thread);
+#ifdef CONFIG_MTD_UBI_FASTMAP
+ cancel_work_sync(&ubi->fm_work);
+#endif
ubi_debugfs_exit_dev(ubi);
uif_close(ubi);