1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-24 20:53:22 +02:00

Fix free space size check

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6880 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
ejka 2007-04-07 10:36:31 +00:00
parent 5a25558ed3
commit a5685a2556

View 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);