>> To: openwrt-devel@lists.openwrt.org
>> Cc: John Thomson
>> Subject: [PATCH] kernel: fix mtd partition erase> wrong address
>>
>> This bug applied where mtd partition end address, or erase start address,
>> was not cleanly divisible by parent mtd erasesi
Hi,
> -Original Message-
> From: openwrt-devel [mailto:openwrt-devel-boun...@lists.openwrt.org]
> On Behalf Of John Thomson
> Sent: Mittwoch, 5. August 2020 23:14
> To: openwrt-devel@lists.openwrt.org
> Cc: John Thomson
> Subject: [PATCH] kernel: fix mtd partitio
Hi John.
W dniu 05.08.2020 o 23:13, John Thomson pisze:
> This bug applied where mtd partition end address,
> or erase start address, was not cleanly divisible by parent mtd erasesize.
>
> This error would cause the bits following the end of the partition
> to the next erasesize block boundary to
On Wed, 5 Aug 2020, at 21:13, John Thomson wrote:
> -@@ -213,6 +262,24 @@ static int part_erase(struct mtd_info *m
> if (instr->fail_addr != MTD_FAIL_ADDR_UNKNOWN)
> instr->fail_addr -= part->offset;
I should modify this to avoid the _write, if the _erase fails before the writ
This bug applied where mtd partition end address,
or erase start address, was not cleanly divisible by parent mtd erasesize.
This error would cause the bits following the end of the partition
to the next erasesize block boundary to be erased,
and this partition-overflow data to be written to the p