Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 4539
b: refs/heads/master
c: 82e1d19
h: refs/heads/master
i:
  4537: 9ce5493
  4535: 0c5dced
v: v3
  • Loading branch information
Dan Brown authored and Thomas Gleixner committed May 23, 2005
1 parent 8f8857a commit 825ca71
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e5a3e8ca948e8ac0dad751dbd75e4dc96b4277e9
refs/heads/master: 82e1d19fc3e6bd20b65937352a015a412b751d47
7 changes: 3 additions & 4 deletions trunk/drivers/mtd/nand/nand_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
* The AG-AND chips have nice features for speed improvement,
* which are not supported yet. Read / program 4 pages in one go.
*
* $Id: nand_base.c,v 1.140 2005/04/04 18:56:29 gleixner Exp $
* $Id: nand_base.c,v 1.141 2005/04/06 20:13:05 dbrown Exp $
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
Expand Down Expand Up @@ -1285,13 +1285,12 @@ int nand_do_read_ecc (struct mtd_info *mtd, loff_t from, size_t len,
switch(oobsel->useecc) {
case MTD_NANDECC_AUTOPLACE:
/* Walk through the autoplace chunks */
for (i = 0, j = 0; j < mtd->oobavail; i++) {
for (i = 0; oobsel->oobfree[i][1]; i++) {
int from = oobsel->oobfree[i][0];
int num = oobsel->oobfree[i][1];
memcpy(&oob_buf[oob], &oob_data[from], num);
j+= num;
oob += num;
}
oob += mtd->oobavail;
break;
case MTD_NANDECC_PLACE:
/* YAFFS1 legacy mode */
Expand Down

0 comments on commit 825ca71

Please sign in to comment.