[PATCH] MTD NAND: OOB buffer offset fixups
commit96da96065bd66164acc3c8a1ea6db4ee765537e9
authorVitaly Wool <vwool@ru.mvista.com>
Sat, 16 Sep 2006 19:15:58 +0000 (16 12:15 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sat, 16 Sep 2006 19:54:32 +0000 (16 12:54 -0700)
treebaa607c16c0cb2034cb9eb881fa840ad2f3ef2b5
parent20acaa18d0c002fec180956f87adeb3f11f635a6
[PATCH] 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.

Signed-off-by: Vitaly Wool <vwool@ru.mvista.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/mtd/nand/nand_base.c