mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-27 09:12:39 +00:00
554772a665
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38000
14 lines
385 B
Diff
14 lines
385 B
Diff
--- a/drivers/mtd/mtdpart.c
|
|
+++ b/drivers/mtd/mtdpart.c
|
|
@@ -808,10 +808,6 @@ static void split_uimage(struct mtd_info
|
|
return;
|
|
|
|
len = be32_to_cpu(hdr.size) + 0x40;
|
|
- len = mtd_pad_erasesize(master, part->offset, len);
|
|
- if (len + master->erasesize > part->mtd.size)
|
|
- return;
|
|
-
|
|
__mtd_add_partition(master, "rootfs", part->offset + len,
|
|
part->mtd.size - len, false);
|
|
}
|