aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/patches-3.10/0034-mtd-split-remove-padding.patch
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/ramips/patches-3.10/0034-mtd-split-remove-padding.patch')
-rw-r--r--target/linux/ramips/patches-3.10/0034-mtd-split-remove-padding.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/target/linux/ramips/patches-3.10/0034-mtd-split-remove-padding.patch b/target/linux/ramips/patches-3.10/0034-mtd-split-remove-padding.patch
new file mode 100644
index 0000000000..b08fb1dad1
--- /dev/null
+++ b/target/linux/ramips/patches-3.10/0034-mtd-split-remove-padding.patch
@@ -0,0 +1,15 @@
+Index: linux-3.10.1/drivers/mtd/mtdpart.c
+===================================================================
+--- linux-3.10.1.orig/drivers/mtd/mtdpart.c 2013-07-15 11:39:25.376669514 +0200
++++ linux-3.10.1/drivers/mtd/mtdpart.c 2013-07-15 11:49:53.040684471 +0200
+@@ -807,10 +807,6 @@
+ 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);
+ }