summaryrefslogtreecommitdiff
path: root/lib/bitmap.c
diff options
context:
space:
mode:
authorÁlvaro Fernández Rojas <noltari@gmail.com>2020-05-12 10:24:51 +0200
committerMiquel Raynal <miquel.raynal@bootlin.com>2020-05-24 20:39:39 +0200
commitdcb351c03f2fa6a599de1061b174167e03ee312b (patch)
treeae4083da922063c3c6e75a0d6f525aca5a8f05e0 /lib/bitmap.c
parentd00358d7a1c50718232799e1ee10955bcd73795a (diff)
mtd: rawnand: brcmnand: correctly verify erased pages
The current code checks that the whole OOB area is erased. This is a problem when JFFS2 cleanmarkers are added to the OOB, since it will fail due to the usable OOB bytes not being 0xff. Correct this by only checking that data and ECC bytes aren't 0xff. Fixes: 02b88eea9f9c ("mtd: brcmnand: Add check for erased page bitflips") Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/linux-mtd/20200512082451.771212-1-noltari@gmail.com
Diffstat (limited to 'lib/bitmap.c')
0 files changed, 0 insertions, 0 deletions