diff options
author | Eugene Konev <ejka@openwrt.org> | 2007-04-07 10:36:31 +0000 |
---|---|---|
committer | Eugene Konev <ejka@openwrt.org> | 2007-04-07 10:36:31 +0000 |
commit | da1dc82257baa2cd908f4779d6846e8b48bf06b5 (patch) | |
tree | fc92b6b19e8347eb8c708158b8dc7ec02153b055 /target/linux/generic-2.6/patches | |
parent | e13a9d1a8dce56ba3ca3624767f26191fa226653 (diff) | |
download | upstream-da1dc82257baa2cd908f4779d6846e8b48bf06b5.tar.gz upstream-da1dc82257baa2cd908f4779d6846e8b48bf06b5.tar.bz2 upstream-da1dc82257baa2cd908f4779d6846e8b48bf06b5.zip |
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.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); |