2014-08-07 14:41:19 +00:00
|
|
|
--- a/drivers/mtd/mtdpart.c
|
|
|
|
+++ b/drivers/mtd/mtdpart.c
|
2014-12-08 12:04:25 +00:00
|
|
|
@@ -808,10 +808,6 @@ static void split_uimage(struct mtd_info
|
2014-08-07 14:41:19 +00:00
|
|
|
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);
|
|
|
|
}
|