Fix free space size check
authorEugene Konev <ejka@imfi.kspu.ru>
Sat, 7 Apr 2007 10:36:31 +0000 (10:36 +0000)
committerEugene Konev <ejka@imfi.kspu.ru>
Sat, 7 Apr 2007 10:36:31 +0000 (10:36 +0000)
SVN-Revision: 6880

target/linux/generic-2.6/patches/060-rootfs_split.patch

index e2e52f6def7927e0d471f99aa8a0cde7cbfade1f..b4a55256bf7861f50edce7264327c62b847fb5be 100644 (file)
@@ -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);