OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6baeff7
)
mtd: nand: fix scan_read_raw_oob
author
Dmitry Maluka
<D.Maluka@adbglobal.com>
Fri, 11 May 2012 17:51:51 +0000
(20:51 +0300)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Sat, 9 Jun 2012 15:33:01 +0000
(
00:33
+0900)
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>
drivers/mtd/nand/nand_bbt.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/nand/nand_bbt.c
b/drivers/mtd/nand/nand_bbt.c
index
ccbeaa1
..
cc81cd6
100644
(file)
--- 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,
buf += mtd->oobsize + mtd->writesize;
len -= mtd->writesize;
+ offs += mtd->writesize;
}
return 0;
}