summaryrefslogtreecommitdiffstats
path: root/target/linux/generic-2.6/patches
diff options
context:
space:
mode:
authorejka <ejka@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-04-07 10:36:31 +0000
committerejka <ejka@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-04-07 10:36:31 +0000
commita5685a25567929dcd77878e78d38f9b1ff4c82f1 (patch)
treefc92b6b19e8347eb8c708158b8dc7ec02153b055 /target/linux/generic-2.6/patches
parent5a25558ed3bd1fe17a5101e537f7a9134e028349 (diff)
Fix free space size check
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6880 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic-2.6/patches')
-rw-r--r--target/linux/generic-2.6/patches/060-rootfs_split.patch2
1 files changed, 1 insertions, 1 deletions
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 e2e52f6de..b4a55256b 100644
--- a/target/linux/generic-2.6/patches/060-rootfs_split.patch
+++ b/target/linux/generic-2.6/patches/060-rootfs_split.patch
@@ -242,7 +242,7 @@ diff -ur linux.old/drivers/mtd/mtdpart.c linux.dev/drivers/mtd/mtdpart.c
+ part->offset += len;
+ part->size -= len;
+
-+ if (len + master->erasesize < part->size)
++ if (master->erasesize <= part->size)
+ ret = add_mtd_partition(master, part, i + 1);
+ else
+ kfree(part->name);