|
@@ -253,6 +253,9 @@ static void find_next_position(struct mtdoops_context *cxt)
|
|
|
size_t retlen;
|
|
|
|
|
|
for (page = 0; page < cxt->oops_pages; page++) {
|
|
|
+ if (mtd->block_isbad &&
|
|
|
+ mtd->block_isbad(mtd, page * record_size))
|
|
|
+ continue;
|
|
|
/* Assume the page is used */
|
|
|
mark_page_used(cxt, page);
|
|
|
ret = mtd->read(mtd, page * record_size, MTDOOPS_HEADER_SIZE,
|