nand bb: fix handling of two subsequent bad blocks
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
c67926c239
commit
0c45663798
|
@ -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 -
|
||||
|
|
Loading…
Reference in New Issue