From: Artem Bityutskiy Date: Wed, 20 Oct 2010 08:51:21 +0000 (+0300) Subject: UBI: fix check_data_ff return code X-Git-Tag: v2.6.37-rc1~169^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df3fca4cdddfa6e1f51b65214d4342660649bd1f;p=pandora-kernel.git 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 --- Reading git-diff-tree failed