linux-stable/drivers/mtd
Claire Lin 5f3473a3e5 mtd: rawnand: brcmnand: Fix ecc chunk calculation for erased page bitfips
commit 7f852cc157 upstream.

In brcmstb_nand_verify_erased_page(), the ECC chunk pointer calculation
while correcting erased page bitflips is wrong, fix it.

Fixes: 02b88eea9f ("mtd: brcmnand: Add check for erased page bitflips")
Signed-off-by: Claire Lin <claire.lin@broadcom.com>
Reviewed-by: Ray Jui <ray.jui@broadcom.com>
Signed-off-by: Kamal Dasu <kdasu.kdev@gmail.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Yuta Hayama <hayama@lineo.co.jp>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-12-08 08:41:59 +01:00
..
chips mtd: cfi_cmdset_0002: Use chip_ready() for write on S29GL064N 2022-06-14 16:54:02 +02:00
devices mtd: st_spi_fsm: Add a clk_disable_unprepare() in .probe()'s error path 2022-08-25 11:11:21 +02:00
lpddr mtd: lpddr2_nvm: Fix possible null-ptr-deref 2023-01-18 09:26:13 +01:00
maps mtd: maps: pxa2xx-flash: fix memory leak in probe 2023-01-18 09:26:14 +01:00
nand mtd: rawnand: brcmnand: Fix ecc chunk calculation for erased page bitfips 2023-12-08 08:41:59 +01:00
onenand mtd: onenand: Check for error irq 2022-04-20 09:08:16 +02:00
parsers
spi-nor mtd: spi-nor: hisi-sfc: Remove excessive clk_disable_unprepare() 2021-11-26 11:40:34 +01:00
tests
ubi ubi: Refuse attaching if mtd's erasesize is 0 2023-10-10 21:43:41 +02:00
Kconfig
Makefile
afs.c
ar7part.c
bcm47xxpart.c
bcm63xxpart.c
cmdlinepart.c mtd: parser: cmdline: Fix parsing of part-names with colons 2020-12-29 13:47:10 +01:00
ftl.c
inftlcore.c
inftlmount.c
mtd_blkdevs.c
mtdblock.c mtdblock: tolerate corrected bit-flips 2023-04-20 12:02:11 +02:00
mtdblock_ro.c
mtdchar.c mtd: require write permissions for locking and badblock ioctls 2021-05-22 10:57:28 +02:00
mtdconcat.c
mtdcore.c mtd: Fix device name leak when register device failed in add_mtd_device() 2023-01-18 09:26:12 +01:00
mtdcore.h
mtdoops.c mtd: mtdoops: Don't write panic data twice 2020-10-29 09:07:08 +01:00
mtdpart.c
mtdsuper.c
mtdswap.c
nftlcore.c
nftlmount.c
ofpart.c
redboot.c
rfd_ftl.c
sm_ftl.c mtd: sm_ftl: Fix deadlock caused by cancel_work_sync in sm_release 2022-08-25 11:11:20 +02:00
sm_ftl.h
ssfdc.c