2014-08-07 22:41:19 +08:00
|
|
|
--- a/drivers/mtd/mtdpart.c
|
|
|
|
+++ b/drivers/mtd/mtdpart.c
|
2014-12-15 17:10:43 +08:00
|
|
|
@@ -808,9 +808,6 @@ static void split_uimage(struct mtd_info
|
2014-08-07 22:41:19 +08: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;
|
2014-12-15 17:10:43 +08:00
|
|
|
|
|
|
|
if (config_enabled(CONFIG_MTD_SPLIT_UIMAGE_FW))
|
|
|
|
pr_err("Dedicated partitioner didn't split firmware partition, please fill a bug report!\n");
|