| commit | df3fca4cdddfa6e1f51b65214d4342660649bd1f | [log] [tgz] |
|---|---|---|
| author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | Wed Oct 20 11:51:21 2010 +0300 |
| committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | Thu Oct 21 11:20:37 2010 +0300 |
| tree | 13389da659d8d2235f8a56f7e263f11bced19fc6 | |
| parent | fb22b59b2c38054cc847f6acc5c46daa26dc6dd3 [diff] |
UBI: fix check_data_ff return code
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>