9
0
Fork 0

nand bb: fix handling of two subsequent bad blocks

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2009-10-12 19:32:33 +02:00
parent c67926c239
commit 0c45663798
1 changed files with 1 additions and 0 deletions

View File

@ -65,6 +65,7 @@ static ssize_t nand_bb_read(struct cdev *cdev, void *buf, size_t count,
if (ret) {
printf("skipping bad block at 0x%08x\n", bb->offset);
bb->offset += bb->info.erasesize;
continue;
}
now = min(count, (size_t)(bb->info.erasesize -