summaryrefslogtreecommitdiff
path: root/target/linux/ramips/patches-3.18/0100-mtd-split-remove-padding.patch
blob: 9ee55d5d4d02d9ec838a8c0fb7d5637f27ec0b45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--- a/drivers/mtd/mtdpart.c
+++ b/drivers/mtd/mtdpart.c
@@ -821,9 +821,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;
 
 	if (config_enabled(CONFIG_MTD_SPLIT_UIMAGE_FW))
 		pr_err("Dedicated partitioner didn't split firmware partition, please fill a bug report!\n");