Browse Source

fix rootfs split partition renaming (fix by Eric L. Chen)

SVN-Revision: 8081
Felix Fietkau 18 years ago
parent
commit
cf633b733a

+ 1 - 1
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;

+ 1 - 1
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;