提交 2d2d306f 编写于 作者: M Martin Townsend 提交者: Heiko Schocher

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: NMartin Townsend <mtownsend1973@gmail.com>
Cc: hs@denx.de
Cc: kmpark@infradead.org
Cc: richard@sigma-star.at
上级 a43aebee
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册