mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00: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
e13a9d1a8d
commit
da1dc82257
@ -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…
x
Reference in New Issue
Block a user