summaryrefslogtreecommitdiff
path: root/target/linux/generic-2.6
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-07-20 18:09:00 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-07-20 18:09:00 +0000
commitcf633b733a3ff9f870b2ab01f206db6b850c1bd2 (patch)
treefb4c47235beb72d79da8f52cb40328ab2d83c5e5 /target/linux/generic-2.6
parentf60d180330c2dd9a139368f504a4473c055490fb (diff)
downloadmtk-20170518-cf633b733a3ff9f870b2ab01f206db6b850c1bd2.zip
mtk-20170518-cf633b733a3ff9f870b2ab01f206db6b850c1bd2.tar.gz
mtk-20170518-cf633b733a3ff9f870b2ab01f206db6b850c1bd2.tar.bz2
fix rootfs split partition renaming (fix by Eric L. Chen)
SVN-Revision: 8081
Diffstat (limited to 'target/linux/generic-2.6')
-rw-r--r--target/linux/generic-2.6/patches-2.6.22/060-rootfs_split.patch2
-rw-r--r--target/linux/generic-2.6/patches/060-rootfs_split.patch2
2 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/generic-2.6/patches-2.6.22/060-rootfs_split.patch b/target/linux/generic-2.6/patches-2.6.22/060-rootfs_split.patch
index 9900cac..67f4764 100644
--- a/target/linux/generic-2.6/patches-2.6.22/060-rootfs_split.patch
+++ b/target/linux/generic-2.6/patches-2.6.22/060-rootfs_split.patch
@@ -252,8 +252,8 @@ Index: linux/drivers/mtd/mtdpart.c
+ goto out;
+ }
+
-+ part->name = (unsigned char *)&part[1];
+ memcpy(part, old, sizeof(*part));
++ part->name = (unsigned char *)&part[1];
+ strcpy(part->name, ROOTFS_SPLIT_NAME);
+
+ len = (u32) sb->bytes_used;
diff --git a/target/linux/generic-2.6/patches/060-rootfs_split.patch b/target/linux/generic-2.6/patches/060-rootfs_split.patch
index fe323c7..262d314 100644
--- a/target/linux/generic-2.6/patches/060-rootfs_split.patch
+++ b/target/linux/generic-2.6/patches/060-rootfs_split.patch
@@ -253,8 +253,8 @@ Index: linux/drivers/mtd/mtdpart.c
+ goto out;
+ }
+
-+ part->name = (unsigned char *)&part[1];
+ memcpy(part, old, sizeof(*part));
++ part->name = (unsigned char *)&part[1];
+ strcpy(part->name, ROOTFS_SPLIT_NAME);
+
+ len = (u32) sb->bytes_used;