mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-24 05:42:59 +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:
parent
5a25558ed3
commit
a5685a2556
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user