]> git.baikalelectronics.ru Git - kernel.git/commit
ubi: fastmap: Fix inverted logic in seen selfcheck
authorSascha Hauer <s.hauer@pengutronix.de>
Wed, 23 Oct 2019 09:58:12 +0000 (11:58 +0200)
committerRichard Weinberger <richard@nod.at>
Thu, 16 Jan 2020 22:34:50 +0000 (23:34 +0100)
commit304e90fe1e93a4766ca1f0f634b65b28060439fe
tree66737f50cbef1ca65437b091e5a940d4ead3d0c3
parent51213984a5013717c93ba5110d1a3b2b2072ddc1
ubi: fastmap: Fix inverted logic in seen selfcheck

set_seen() sets the bit corresponding to the PEB number in the bitmap,
so when self_check_seen() wants to find PEBs that haven't been seen we
have to print the PEBs that have their bit cleared, not the ones which
have it set.

Fixes: aa716307f9ac ("ubi: Use bitmaps in Fastmap self-check code")
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Richard Weinberger <richard@nod.at>
drivers/mtd/ubi/fastmap.c