UBI: Call scan_all() with correct offset in error case
authorRichard Weinberger <richard@nod.at>
Sat, 28 Sep 2013 13:55:12 +0000 (15:55 +0200)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Thu, 3 Oct 2013 16:42:49 +0000 (19:42 +0300)
commit4b3e0a25aa5518892ec8dbfafdd6a57789aa0c22
tree0b6df0a177414b11d618a4aca390a192bca5f247
parentf240dca8f2fdf11d52a7bacd867e274c3b21a7d3
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: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
drivers/mtd/ubi/attach.c