summaryrefslogtreecommitdiff
path: root/drivers/mtd
diff options
context:
space:
mode:
authorMartin Townsend <mtownsend1973@gmail.com>2018-01-18 08:07:33 +0000
committerHeiko Schocher <hs@denx.de>2018-02-06 07:05:57 +0100
commit2d2d306f79e5ae090790fd380662f5407ccace11 (patch)
tree6668b37546711ae6457081fe599e442662147537 /drivers/mtd
parenta43aebee89acf57b4e22018f401cffc9fef4fd85 (diff)
ubi: Ensure no fastmap flush after uif_close
On detach UBI attempts to update fastmap after closing user interfaces but at this point UBI volumes have already been free()'ed and fastmap can no longer access these data structures. Signed-off-by: Martin Townsend <mtownsend1973@gmail.com> Cc: hs@denx.de Cc: kmpark@infradead.org Cc: richard@sigma-star.at
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/ubi/fastmap-wl.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/mtd/ubi/fastmap-wl.c b/drivers/mtd/ubi/fastmap-wl.c
index a33d4063e0..b7876a81cb 100644
--- a/drivers/mtd/ubi/fastmap-wl.c
+++ b/drivers/mtd/ubi/fastmap-wl.c
@@ -337,11 +337,6 @@ static void ubi_fastmap_close(struct ubi_device *ubi)
{
int i;
-#ifndef __UBOOT__
- flush_work(&ubi->fm_work);
-#else
- update_fastmap_work_fn(ubi);
-#endif
return_unused_pool_pebs(ubi, &ubi->fm_pool);
return_unused_pool_pebs(ubi, &ubi->fm_wl_pool);