UBI: account for bitflips in both the VID header and data

[ Upstream commit 8eef7d70f7 ]

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

Cc: stable <stable@vger.kernel.org>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
This commit is contained in:
Brian Norris 2015-02-28 02:23:25 -08:00 • committed by Sasha Levin
commit cdf5f4433c