UBI: fix check_data_ff return code
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Wed, 20 Oct 2010 08:51:21 +0000 (11:51 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Thu, 21 Oct 2010 08:20:37 +0000 (11:20 +0300)
When the data does not contain all 0xFF bytes, 'check_data_ff()' should return
1, not -EINVAL; Also, the caller ('process_eb()') should not add the PEB to the
"corrupted" list if there was a read error.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>

No differences found