Skip to content

Commit

Permalink
[MTD] OneNAND: Check first or second pages for bad block information
Browse files Browse the repository at this point in the history
OneNAND records bad block information in the out-of-band area of either the first or second page of a block.  Due to a logic error, only the first page was being checked.

Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
  • Loading branch information
Adrian Hunter authored and Kyungmin Park committed Jan 22, 2007
1 parent f00b004 commit ec255e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mtd/onenand/onenand_bbt.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ static int create_bbt(struct mtd_info *mtd, uint8_t *buf, struct nand_bbt_descr

printk(KERN_INFO "Scanning device for bad blocks\n");

len = 1;
len = 2;

/* We need only read few bytes from the OOB area */
scanlen = ooblen = 0;
Expand Down

0 comments on commit ec255e3

Please sign in to comment.