diff options
author | John Crispin <john@openwrt.org> | 2014-03-18 19:21:56 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2014-03-18 19:21:56 +0000 |
commit | 332b94fbd524b944d2296b8ae0bf3db90a64ac90 (patch) | |
tree | 4eef4c2285c01b870a57a2f663612a4fe53df534 /target/linux/ramips/patches-3.10/0134-mtd-split-remove-padding.patch | |
parent | 8a97da18e00ac36bdb5871d903044fc9b0826bfd (diff) | |
download | mtk-20170518-332b94fbd524b944d2296b8ae0bf3db90a64ac90.zip mtk-20170518-332b94fbd524b944d2296b8ae0bf3db90a64ac90.tar.gz mtk-20170518-332b94fbd524b944d2296b8ae0bf3db90a64ac90.tar.bz2 |
ralink: refresh patches
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 39949
Diffstat (limited to 'target/linux/ramips/patches-3.10/0134-mtd-split-remove-padding.patch')
-rw-r--r-- | target/linux/ramips/patches-3.10/0134-mtd-split-remove-padding.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/target/linux/ramips/patches-3.10/0134-mtd-split-remove-padding.patch b/target/linux/ramips/patches-3.10/0134-mtd-split-remove-padding.patch new file mode 100644 index 0000000..9c5a728 --- /dev/null +++ b/target/linux/ramips/patches-3.10/0134-mtd-split-remove-padding.patch @@ -0,0 +1,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); + } |