]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
UBI: fastmap: do not miss bit-flips
authorBrian Norris <computersforpeace@gmail.com>
Wed, 21 May 2014 05:35:38 +0000 (22:35 -0700)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Wed, 16 Jul 2014 05:32:00 +0000 (08:32 +0300)
commit44305ebde243a7cce2c592cc89afe5041d8bf884
tree4113abdd6aa8608cb031ed43397d3b08a60076c0
parente9110361a9a4e258b072b14bd44eb78cf11453cb
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>
drivers/mtd/ubi/fastmap.c