Re: [PATCH 02/14] ubi: Fix assert in ubi_wl_init

2018-06-20 Thread Boris Brezillon
On Wed, 13 Jun 2018 23:23:32 +0200 Richard Weinberger wrote: > When multiple PEBs are used for a fastmap, found_pebs > can be wrong and the assert triggers. > > The current approach is broken in two ways: > 1. The "continue" in list_for_each_entry() over all fastmap PEBs >misses the counter

[PATCH 02/14] ubi: Fix assert in ubi_wl_init

2018-06-13 Thread Richard Weinberger
When multiple PEBs are used for a fastmap, found_pebs can be wrong and the assert triggers. The current approach is broken in two ways: 1. The "continue" in list_for_each_entry() over all fastmap PEBs misses the counter at all. 2. When the fastmap changes in size, growing due to a preseeded fas