diff options
author | Eugene Konev <ejka@imfi.kspu.ru> | 2007-04-07 10:36:31 +0000 |
---|---|---|
committer | Eugene Konev <ejka@imfi.kspu.ru> | 2007-04-07 10:36:31 +0000 |
commit | 74c927577d0c7aac96fe8f034913423b4be56a0d (patch) | |
tree | 8f56ccf2caeba21d388e0849c6a09879115e0e45 | |
parent | 5e42783559a06133e33601344a0222e49d58aee5 (diff) | |
download | mtk-20170518-74c927577d0c7aac96fe8f034913423b4be56a0d.zip mtk-20170518-74c927577d0c7aac96fe8f034913423b4be56a0d.tar.gz mtk-20170518-74c927577d0c7aac96fe8f034913423b4be56a0d.tar.bz2 |
Fix free space size check
SVN-Revision: 6880
-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 e2e52f6..b4a5525 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); |