]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
UBI: account for bitflips in both the VID header and data
authorBrian Norris <computersforpeace@gmail.com>
Sat, 28 Feb 2015 10:23:25 +0000 (02:23 -0800)
committerJiri Slaby <jslaby@suse.cz>
Mon, 4 May 2015 09:50:07 +0000 (11:50 +0200)
commitfa4a3fc61b8cfc9c9ee19215906f496804d30751
treefd3eeeb0ba5c213d41475bf1a701e8ec7be31c25
parent3d24bbbe6638ce1d873e9ebe56861499688c4d3f
UBI: account for bitflips in both the VID header and data

commit 8eef7d70f7c6772c3490f410ee2bceab3b543fa1 upstream.

We are completely discarding the earlier value of 'bitflips', which
could reflect a bitflip found in ubi_io_read_vid_hdr(). Let's use the
bitwise OR of header and data 'bitflip' statuses instead.

Coverity CID #1226856

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/mtd/ubi/attach.c