Fix accessing array after it end.

SVN-Revision: 16301
owl
Hauke Mehrtens 2009-06-02 20:10:29 +00:00
parent 81d3b7905b
commit 0efe367787
1 changed files with 3 additions and 3 deletions

View File

@ -232,9 +232,9 @@ static int ifxmips_mtd_probe(struct platform_device *dev)
if (err <= 0) {
if (ifxmips_has_brn_block()) {
parts[4].size -= ifxmips_mtd->erasesize;
parts[5].offset = ifxmips_mtd->size - ifxmips_mtd->erasesize;
parts[5].size = ifxmips_mtd->erasesize;
parts[3].size -= ifxmips_mtd->erasesize;
parts[4].offset = ifxmips_mtd->size - ifxmips_mtd->erasesize;
parts[4].size = ifxmips_mtd->erasesize;
} else {
num_parts--;
}