UBI: Call scan_all() with correct offset in error case
If we find an invalid fastmap we have to scan from the very beginning.
Otherwise we leak the first 64 PEBs.

Reported-and-tested-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 4a290f9 commit 8000a53dda8faa350ac16d9b23e6480a288f668b
@Richard Weinberger Richard Weinberger authored on 28 Sep 2013
Sascha Hauer committed on 7 Jan 2014
Showing 1 changed file
View
drivers/mtd/ubi/attach.c