summaryrefslogtreecommitdiff
path: root/target/linux/ramips/patches-3.10/0134-mtd-split-remove-padding.patch
blob: 9c5a7289957b7cff6fba2251fee66b01df8ebc90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- a/drivers/mtd/mtdpart.c
+++ b/drivers/mtd/mtdpart.c
@@ -805,10 +805,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);
 }