projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a43aebe
)
ubi: Ensure no fastmap flush after uif_close
author
Martin Townsend
<
[email protected]
>
Thu, 18 Jan 2018 08:07:33 +0000
(08:07 +0000)
committer
Heiko Schocher
<
[email protected]
>
Tue, 6 Feb 2018 06:05:57 +0000
(07:05 +0100)
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 <
[email protected]
>
Cc:
[email protected]
Cc:
[email protected]
Cc:
[email protected]
drivers/mtd/ubi/fastmap-wl.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/ubi/fastmap-wl.c
b/drivers/mtd/ubi/fastmap-wl.c
index a33d4063e06487e5520561051463774408c17bab..b7876a81cb0f1fbeb6bf0e30c46476fe511a61de 100644
(file)
--- 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);