ubiformat: Fix formatting devices with unreadable areas
When parts of a Nand device are not readable due to excessive bit flips
we should not bail out with an error as this means we can never repair
the device by flashing a fresh image using ubiformat. Instead, treat a
failed read as a corrupt block and ignore the read failure.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 821de09 commit 3dca2b0bf7936eedce9c551253c70921f0485991
@Sascha Hauer Sascha Hauer authored on 17 May 2016
Showing 1 changed file
View
lib/libscan.c