aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/mtd/nand/mxc_nand.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/nand/mxc_nand.c b/drivers/mtd/nand/mxc_nand.c
index ef932ba55a0b..6cd78ed439a7 100644
--- 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)
641 641
642 n = min(n, len); 642 n = min(n, len);
643 643
644 memcpy(buf, host->data_buf + col, len); 644 memcpy(buf, host->data_buf + col, n);
645 645
646 host->buf_start += len; 646 host->buf_start += n;
647} 647}
648 648
649/* Used by the upper layer to verify the data in NAND Flash 649/* Used by the upper layer to verify the data in NAND Flash