UBI: fastmap: fix backward compatibility with image_seq
Some old UBI implementations (e.g. U-Boot) have not implemented the image
sequence feature.
So, when erase blocks are written, the image sequence in the ec header
is lost (set to zero).
UBI scan_all() takes this case into account (commits
32bc482 and
2eadaad)

But fastmap scan functions (ubi_scan_fastmap() and scan_pool()) didn't.

This patch fixes the issue.

Signed-off-by: Richard Genoud <richard.genoud@gmail.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 8000a53 commit 2bae366563e7365afbd836cb7989188359255419
@Richard Genoud Richard Genoud authored on 28 Sep 2013
Sascha Hauer committed on 7 Jan 2014
Showing 1 changed file
View
drivers/mtd/ubi/fastmap.c