Commit 399a9fee authored by Richard Weinberger's avatar Richard Weinberger

UBI: Fastmap: Ensure that all fastmap work is done upon WL shutdown

...otherwise the deferred work might run after datastructures
got freed and corrupt memory.
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
Reviewed-by: default avatarGuido Martínez <guido@vanguardiasur.com.ar>
parent 19371d73
......@@ -1856,6 +1856,9 @@ int ubi_thread(void *u)
*/
static void shutdown_work(struct ubi_device *ubi)
{
#ifdef CONFIG_MTD_UBI_FASTMAP
flush_work(&ubi->fm_work);
#endif
while (!list_empty(&ubi->works)) {
struct ubi_work *wrk;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment