From: Brian Norris Date: Wed, 21 May 2014 05:35:38 +0000 (-0700) Subject: UBI: fastmap: do not miss bit-flips X-Git-Tag: omap-for-v3.17/fixes-against-rc2~278^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44305ebde243a7cce2c592cc89afe5041d8bf884;p=pandora-kernel.git 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 Acked-by: Richard Weinberger Signed-off-by: Artem Bityutskiy --- Reading git-diff-tree failed