[MTD] NAND: Read only OOB bytes during bad block scan
authorArtem B. Bityuckiy <dedekind@infradead.org>
Fri, 11 Feb 2005 10:14:15 +0000 (10:14 +0000)
committerThomas Gleixner <tglx@mtd.linutronix.de>
Mon, 23 May 2005 10:32:18 +0000 (12:32 +0200)
commiteeada24da8bd23fcf6acd2729be054ea99b301bb
treec5d3cdffbfc11ec2ee82d64aef4177e92dfdffc7
parent41ce921440bd14d9b69b19fbf47d9278582739fe
[MTD] NAND: Read only OOB bytes during bad block scan

When scanning NAND for bad blocks, don't read the whole page, read
only needed OOB bytes instead. Also check the return code of the
nand_read_raw() function. Correctly free the this->bbt array in
case of failure. Tested with Large page NAND.

Fix debugging message.

Signed-off-by: Artem B. Bityuckiy <dedekind@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
drivers/mtd/nand/nand_bbt.c