0100-mtd-split-remove-padding.patch 430 B

123456789101112
  1. --- a/drivers/mtd/mtdpart.c
  2. +++ b/drivers/mtd/mtdpart.c
  3. @@ -818,9 +818,6 @@ static void split_uimage(struct mtd_info
  4. return;
  5. len = be32_to_cpu(hdr.size) + 0x40;
  6. - len = mtd_pad_erasesize(master, part->offset, len);
  7. - if (len + master->erasesize > part->mtd.size)
  8. - return;
  9. if (config_enabled(CONFIG_MTD_SPLIT_UIMAGE_FW))
  10. pr_err("Dedicated partitioner didn't split firmware partition, please fill a bug report!\n");