From dec0105a91cf7f935f15541b79cf81778d8280a1 Mon Sep 17 00:00:00 2001 From: hxy Date: Wed, 29 Sep 2010 16:03:12 +0800 Subject: [PATCH] apanic start to write flash must be aligned to block --- drivers/misc/apanic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.34.1