Skip to content
Commit 908e52bf authored by Álvaro Fernández Rojas's avatar Álvaro Fernández Rojas Committed by Paul Gortmaker
Browse files

mtd: rawnand: brcmnand: correctly verify erased pages



commit dcb351c0 upstream.

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: 02b88eea ("mtd: brcmnand: Add check for erased page bitflips")
Signed-off-by: default avatarÁlvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20200512082451.771212-1-noltari@gmail.com


Signed-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
parent 780dcc5a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment