apanic start to write flash must be aligned to block
authorhxy <hxy@rock-chips.com>
Wed, 29 Sep 2010 08:03:12 +0000 (16:03 +0800)
committerhxy <hxy@rock-chips.com>
Wed, 29 Sep 2010 08:03:12 +0000 (16:03 +0800)
drivers/misc/apanic.c

index ca875f89da7a7ffe4dfde8eda532f26c800d50f9..ee3a4a440675f0994f22a186876f75e8fce5ad55 100644 (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