mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-26 17:01:14 +00:00
7d6cff4882
Changelog: * https://www.kernel.org/pub/linux/kernel/v3.x/ChangeLog-3.18.21 Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 46768
13 lines
430 B
Diff
13 lines
430 B
Diff
--- a/drivers/mtd/mtdpart.c
|
|
+++ b/drivers/mtd/mtdpart.c
|
|
@@ -819,9 +819,6 @@ static void split_uimage(struct mtd_info
|
|
return;
|
|
|
|
len = be32_to_cpu(hdr.size) + 0x40;
|
|
- len = mtd_pad_erasesize(master, part->offset, len);
|
|
- if (len + master->erasesize > part->mtd.size)
|
|
- return;
|
|
|
|
if (config_enabled(CONFIG_MTD_SPLIT_UIMAGE_FW))
|
|
pr_err("Dedicated partitioner didn't split firmware partition, please fill a bug report!\n");
|