diff options
author | Dmitry Maluka <D.Maluka@adbglobal.com> | 2012-05-11 13:51:51 -0400 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-05-29 04:14:58 -0400 |
commit | 34a5704d91d6f8376a4c0a0143a1dd3eb3ccb37e (patch) | |
tree | 33d697e06ccb7f4c3452dbb91e2477a706d841c3 /drivers/mtd/nand/nand_bbt.c | |
parent | 52c2d9aad4923536c10d278e02da2e0254e46ee0 (diff) |
mtd: nand: fix scan_read_raw_oob
It seems there is a bug in scan_read_raw_oob() in nand_bbt.c which
should cause wrong functioning of NAND_BBT_SCANALLPAGES option.
Artem: the patch did not apply and I had to amend it a bit.
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Cc: stable@kernel.org
Diffstat (limited to 'drivers/mtd/nand/nand_bbt.c')
-rw-r--r-- | drivers/mtd/nand/nand_bbt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/nand/nand_bbt.c b/drivers/mtd/nand/nand_bbt.c index 20a112f591fe..30d1319ff065 100644 --- a/drivers/mtd/nand/nand_bbt.c +++ b/drivers/mtd/nand/nand_bbt.c | |||
@@ -324,6 +324,7 @@ static int scan_read_raw_oob(struct mtd_info *mtd, uint8_t *buf, loff_t offs, | |||
324 | 324 | ||
325 | buf += mtd->oobsize + mtd->writesize; | 325 | buf += mtd->oobsize + mtd->writesize; |
326 | len -= mtd->writesize; | 326 | len -= mtd->writesize; |
327 | offs += mtd->writesize; | ||
327 | } | 328 | } |
328 | return 0; | 329 | return 0; |
329 | } | 330 | } |