From: Eugene Konev Date: Sat, 7 Apr 2007 10:36:31 +0000 (+0000) Subject: Fix free space size check X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=74c927577d0c7aac96fe8f034913423b4be56a0d;p=openwrt%2Fstaging%2Fldir.git Fix free space size check SVN-Revision: 6880 --- 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 e2e52f6def..b4a55256bf 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);