Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 153781
b: refs/heads/master
c: 81d19b0
h: refs/heads/master
i:
  153779: e811e47
v: v3
  • Loading branch information
David Brownell authored and David Woodhouse committed Jun 5, 2009
1 parent 2cd0c98 commit 5740792
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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: 24430abc88c67e3df2f06c96a6ccd73bda4c92f0
refs/heads/master: 81d19b04a865f9fcc0ca01b20be806169ff9efb3
3 changes: 2 additions & 1 deletion trunk/drivers/mtd/nand/nand_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -2756,7 +2756,8 @@ int nand_scan_tail(struct mtd_info *mtd)
* the out of band area
*/
chip->ecc.layout->oobavail = 0;
for (i = 0; chip->ecc.layout->oobfree[i].length; i++)
for (i = 0; chip->ecc.layout->oobfree[i].length
&& i < ARRAY_SIZE(chip->ecc.layout->oobfree); i++)
chip->ecc.layout->oobavail +=
chip->ecc.layout->oobfree[i].length;
mtd->oobavail = chip->ecc.layout->oobavail;
Expand Down

0 comments on commit 5740792

Please sign in to comment.