apanic start to write flash must be aligned to block

This commit is contained in:
hxy
2010-09-29 16:03:12 +08:00
parent 9fdec9a2a0
commit dec0105a91

View File

@@ -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