X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/51b1102e9862d66d813697ebd63e083b002b264d..6fb33f05da8ff895875cb8d98a7c18e9c606e205:/target/linux/generic-2.6/patches-2.6.23/070-redboot_space.patch diff --git a/target/linux/generic-2.6/patches-2.6.23/070-redboot_space.patch b/target/linux/generic-2.6/patches-2.6.23/070-redboot_space.patch index 2f3155588..b4d57cb53 100644 --- a/target/linux/generic-2.6/patches-2.6.23/070-redboot_space.patch +++ b/target/linux/generic-2.6/patches-2.6.23/070-redboot_space.patch @@ -15,15 +15,15 @@ + parts[i].size = fl->next->img->flash_base; + parts[i].size &= ~(master->erasesize - 1); + parts[i].size -= parts[i].offset; -+ } +#ifdef CONFIG_MTD_REDBOOT_PARTS_UNALLOCATED -+ else { ++ nrparts--; ++ } else { + i++; + parts[i].offset = parts[i-1].size + parts[i-1].offset; + parts[i].size = fl->next->img->flash_base - parts[i].offset; + parts[i].name = nullname; -+ } #endif ++ } + } tmp_fl = fl; fl = fl->next;