9
0
Fork 0

mtd/nand_imx: fix read past buffer end

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Baruch Siach 2011-03-17 10:59:42 +02:00 committed by Sascha Hauer
parent 88415af7d5
commit 79c78016c1
1 changed files with 2 additions and 2 deletions

View File

@ -578,9 +578,9 @@ static void imx_nand_read_buf(struct mtd_info *mtd, u_char * buf, int len)
n = min(n, len);
memcpy(buf, host->data_buf + col, len);
memcpy(buf, host->data_buf + col, n);
host->buf_start += len;
host->buf_start += n;
}
/*