Merge tag 'upstream-3.7-rc1' of git://git.infradead.org/linux-ubifs
[cascardo/linux.git] / drivers / mtd / nand / nand_bbt.c
index 20a112f..30d1319 100644 (file)
@@ -324,6 +324,7 @@ static int scan_read_raw_oob(struct mtd_info *mtd, uint8_t *buf, loff_t offs,
 
                buf += mtd->oobsize + mtd->writesize;
                len -= mtd->writesize;
+               offs += mtd->writesize;
        }
        return 0;
 }