diff options
-rw-r--r-- | drivers/mtd/ubi/wl.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mtd/ubi/wl.c b/drivers/mtd/ubi/wl.c index ae174f4ed674..bf66890fefad 100644 --- a/drivers/mtd/ubi/wl.c +++ b/drivers/mtd/ubi/wl.c | |||
@@ -1856,6 +1856,9 @@ int ubi_thread(void *u) | |||
1856 | */ | 1856 | */ |
1857 | static void shutdown_work(struct ubi_device *ubi) | 1857 | static void shutdown_work(struct ubi_device *ubi) |
1858 | { | 1858 | { |
1859 | #ifdef CONFIG_MTD_UBI_FASTMAP | ||
1860 | flush_work(&ubi->fm_work); | ||
1861 | #endif | ||
1859 | while (!list_empty(&ubi->works)) { | 1862 | while (!list_empty(&ubi->works)) { |
1860 | struct ubi_work *wrk; | 1863 | struct ubi_work *wrk; |
1861 | 1864 | ||