diff options
author | Dmitry Maluka <D.Maluka@adbglobal.com> | 2012-05-11 21:51:51 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-06-09 19:36:12 +0400 |
commit | a5b57cd820528f863d519ac5a0f6a94e5e8b3a0e (patch) | |
tree | 0e7d72929cb7126ab5a648c154d343865a4b21a9 /drivers/mtd/nand | |
parent | d961b4e3f741d32fb5fe96fe1123c96a3025a1db (diff) | |
download | linux-a5b57cd820528f863d519ac5a0f6a94e5e8b3a0e.tar.xz |
mtd: nand: fix scan_read_raw_oob
commit 34a5704d91d6f8376a4c0a0143a1dd3eb3ccb37e upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/mtd/nand')
-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, buf += mtd->oobsize + mtd->writesize; len -= mtd->writesize; + offs += mtd->writesize; } return 0; } |