aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd
diff options
context:
space:
mode:
authorDmitry Maluka <D.Maluka@adbglobal.com>2012-05-11 13:51:51 -0400
committerLuis Henriques <luis.henriques@canonical.com>2012-07-03 11:29:02 -0400
commit4a0ac1e6506ec990ae8ce0e307244c5191a8f194 (patch)
tree0939512443033442b4aa792a77f0e8d68e48fb26 /drivers/mtd
parentb9a29c169b642381713806bc99c6c27512a85182 (diff)
mtd: nand: fix scan_read_raw_oob
BugLink: http://bugs.launchpad.net/bugs/1013748 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> Signed-off-by: Herton Ronaldo Krzesinski <herton.krzesinski@canonical.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/nand/nand_bbt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/nand/nand_bbt.c b/drivers/mtd/nand/nand_bbt.c
index ccbeaa1e4a8..cc81cd67f87 100644
--- a/drivers/mtd/nand/nand_bbt.c
+++ b/drivers/mtd/nand/nand_bbt.c
@@ -360,6 +360,7 @@ static int scan_read_raw_oob(struct mtd_info *mtd, uint8_t *buf, loff_t offs,
360 360
361 buf += mtd->oobsize + mtd->writesize; 361 buf += mtd->oobsize + mtd->writesize;
362 len -= mtd->writesize; 362 len -= mtd->writesize;
363 offs += mtd->writesize;
363 } 364 }
364 return 0; 365 return 0;
365} 366}