diff options
author | ejka <ejka@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2007-04-07 10:36:31 +0000 |
---|---|---|
committer | ejka <ejka@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2007-04-07 10:36:31 +0000 |
commit | a5685a25567929dcd77878e78d38f9b1ff4c82f1 (patch) | |
tree | fc92b6b19e8347eb8c708158b8dc7ec02153b055 | |
parent | 5a25558ed3bd1fe17a5101e537f7a9134e028349 (diff) |
Fix free space size check
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6880 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | target/linux/generic-2.6/patches/060-rootfs_split.patch | 2 |
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 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); |