[MTD] NAND: OOB buffer offset fixups
authorVitaly Wool <vwool@ru.mvista.com>
Tue, 11 Jul 2006 07:11:25 +0000 (09:11 +0200)
committerThomas Gleixner <tglx@cruncher.tec.linutronix.de>
Tue, 11 Jul 2006 07:11:25 +0000 (09:11 +0200)
commit8b0036eefd7a96f23244b969417684c8627f5ad6
tree765e2a201ebecdde7c89dc27e09f1a6038480eb2
parent90a18fab4ae07b77bf053b75a4d1285cd94faa79
[MTD] NAND: OOB buffer offset fixups

In the case of data-pad-ecc-pad-data... layout the oob start position
has to be sizeof(data) in nand_write_oob_syndrom().

In nand_fill_oob() we need to copy to buf + buffer offset instead of
buf + write offset.

From: Vitaly Wool <vwool@ru.mvista.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
drivers/mtd/nand/nand_base.c