Brian Norris 44305ebde2 UBI: fastmap: do not miss bit-flips
The return value from 'ubi_io_read_ec_hdr()' was stored in 'err', not in 'ret'.
This fix makes sure Fastmap-enabled UBI does not miss bit-flip while reading EC
headers, events and scrubs the affected PEBs.

This issue was reported by Coverity Scan.

Artem: improved the commit message.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Acked-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
2014-07-16 08:32:00 +03:00
..
2014-01-02 17:16:01 +02:00
2012-10-03 12:29:37 +03:00
2014-07-16 08:32:00 +03:00
2012-09-04 09:39:01 +03:00
2014-04-07 10:17:30 -07:00
2012-12-10 13:38:59 +02:00
2014-05-05 09:31:33 +03:00