From: hxy Date: Wed, 29 Sep 2010 08:03:12 +0000 (+0800) Subject: apanic start to write flash must be aligned to block X-Git-Tag: firefly_0821_release~11093 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=dec0105a91cf7f935f15541b79cf81778d8280a1;p=firefly-linux-kernel-4.4.55.git apanic start to write flash must be aligned to block --- diff --git a/drivers/misc/apanic.c b/drivers/misc/apanic.c index ca875f89da7a..ee3a4a440675 100644 --- a/drivers/misc/apanic.c +++ b/drivers/misc/apanic.c @@ -511,7 +511,7 @@ static int apanic(struct notifier_block *this, unsigned long event, printk(KERN_EMERG "Crash partition in use!\n"); goto out; } - console_offset = ctx->mtd->writesize; + console_offset = ctx->mtd->erasesize; /* * Write out the console