1
0
mirror of https://git.openwrt.org/openwrt/openwrt.git synced 2024-11-19 23:17:53 +01:00

Fix accessing array after it end.

SVN-Revision: 16301
This commit is contained in:
Hauke Mehrtens 2009-06-02 20:10:29 +00:00
parent 81d3b7905b
commit 0efe367787

@ -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--;
}