Commit 2d2d306f79e5ae090790fd380662f5407ccace11

Authored by Martin Townsend
Committed by Heiko Schocher
1 parent a43aebee89

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

Showing 1 changed file with 0 additions and 5 deletions Side-by-side Diff

drivers/mtd/ubi/fastmap-wl.c
... ... @@ -337,11 +337,6 @@
337 337 {
338 338 int i;
339 339  
340   -#ifndef __UBOOT__
341   - flush_work(&ubi->fm_work);
342   -#else
343   - update_fastmap_work_fn(ubi);
344   -#endif
345 340 return_unused_pool_pebs(ubi, &ubi->fm_pool);
346 341 return_unused_pool_pebs(ubi, &ubi->fm_wl_pool);
347 342