summaryrefslogtreecommitdiff
path: root/target/linux/generic-2.6/patches-2.6.22/060-rootfs_split.patch
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-07-20 18:09:00 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-07-20 18:09:00 +0000
commit7865baba1cd028774f223d72b3db8de8f7f77c87 (patch)
tree3fb30781802ab0bce4c037d8622c9bb51f0ae3b4 /target/linux/generic-2.6/patches-2.6.22/060-rootfs_split.patch
parent4f475f5ab2714554530833fa10ec13d4be612d49 (diff)
fix rootfs split partition renaming (fix by Eric L. Chen)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8081 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic-2.6/patches-2.6.22/060-rootfs_split.patch')
-rw-r--r--target/linux/generic-2.6/patches-2.6.22/060-rootfs_split.patch2
1 files changed, 1 insertions, 1 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 9900cace4e..67f4764b7b 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;