X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=drivers%2Fmtd%2Fmtdoops.c;h=e3e40f4403235540dc5ad5f6e3efd35aa981f647;hb=ab2020f2f11fc7fb81e6c71298b0830d85412011;hp=c948150079bebe879316657f9bbc69791913dc1a;hpb=d33a6291c1c577ff2272edab7416a0f7308e1cef;p=firefly-linux-kernel-4.4.55.git diff --git a/drivers/mtd/mtdoops.c b/drivers/mtd/mtdoops.c index c948150079be..e3e40f440323 100644 --- a/drivers/mtd/mtdoops.c +++ b/drivers/mtd/mtdoops.c @@ -401,7 +401,8 @@ static void mtdoops_notify_remove(struct mtd_info *mtd) printk(KERN_WARNING "mtdoops: could not unregister kmsg_dumper\n"); cxt->mtd = NULL; - flush_scheduled_work(); + flush_work_sync(&cxt->work_erase); + flush_work_sync(&cxt->work_write); }