projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74f1b72
)
mtd: mxc_nand: fix read past buffer end
author
Baruch Siach
<baruch@tkos.co.il>
Wed, 2 Mar 2011 14:47:55 +0000
(16:47 +0200)
committer
David Woodhouse
<David.Woodhouse@intel.com>
Fri, 11 Mar 2011 14:22:49 +0000
(14:22 +0000)
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Acked-by: Sascha hauer <s.hauer@pengutronix.de>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/mxc_nand.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/nand/mxc_nand.c
b/drivers/mtd/nand/mxc_nand.c
index ef932ba55a0b34967a8fcd48a1f6f43d75ad20b3..6cd78ed439a74fd297cecce7e22740b90ab92f3c 100644
(file)
--- a/
drivers/mtd/nand/mxc_nand.c
+++ b/
drivers/mtd/nand/mxc_nand.c
@@
-641,9
+641,9
@@
static void mxc_nand_read_buf(struct mtd_info *mtd, u_char *buf, int len)
n = min(n, len);
- memcpy(buf, host->data_buf + col,
le
n);
+ memcpy(buf, host->data_buf + col, n);
- host->buf_start +=
le
n;
+ host->buf_start += n;
}
/* Used by the upper layer to verify the data in NAND Flash