mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-24 04:26:16 +02:00
[ifxmips] Fix accessing array after it end.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16301 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
6605084cf1
commit
aea832cc6b
@ -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--;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user