Re: [PATCH] kernel: fix mtd partition erase<parent_erasesize writing to wrong address

John Thomson git at johnthomson.fastmail.com.au
Fri Aug 7 03:51:03 EDT 2020


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 write address?

> 	if (mtd->flags & MTD_ERASE_PARTIAL) {
> 		if (partial_start) {
> 			part->parent->_write(part->parent,


-- 
  John Thomson



More information about the openwrt-devel mailing list