ubi: fastmap: Detect EBA mismatches on-the-fly
authorRichard Weinberger <richard@nod.at>
Mon, 28 May 2018 20:04:34 +0000 (22:04 +0200)
committerRichard Weinberger <richard@nod.at>
Thu, 7 Jun 2018 13:53:17 +0000 (15:53 +0200)
commit3e5e4335cc0ffd668054564b113fb3c9c97badb8
tree6b703aefedcd7a882298eb9d5523c0d5f25c8307
parent34653fd8c46e771585fce5975e4243f8fd401914
ubi: fastmap: Detect EBA mismatches on-the-fly

Now we have the machinery to detect EBA mismatches on-the-fly
by comparing the in-memory volume ID and LEB number with the found
VID header.
This helps to detect malfunction of Fastmap.

Signed-off-by: Richard Weinberger <richard@nod.at>
drivers/mtd/ubi/eba.c