twx-linux/drivers/mtd
Wentao Liang bfbbef7f1d mtd: rawnand: Add status chack in r852_ready()
commit b79fe1829975556854665258cf4d2476784a89db upstream.

In r852_ready(), the dev get from r852_get_dev() need to be checked.
An unstable device should not be ready. A proper implementation can
be found in r852_read_byte(). Add a status check and return 0 when it is
unstable.

Fixes: 50a487e7719c ("mtd: rawnand: Pass a nand_chip object to chip->dev_ready()")
Cc: stable@vger.kernel.org # v4.20+
Signed-off-by: Wentao Liang <vulab@iscas.ac.cn>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-04-25 10:45:29 +02:00
..
chips
devices mtd: powernv: Add check devm_kasprintf() returned value 2024-10-04 16:29:07 +02:00
hyperbus mtd: hyperbus: hbmc-am654: fix an OF node reference leak 2025-02-08 09:52:24 +01:00
lpddr
maps
nand mtd: rawnand: Add status chack in r852_ready() 2025-04-25 10:45:29 +02:00
parsers
spi-nor Revert "mtd: spi-nor: core: replace dummy buswidth from addr to data" 2025-01-23 17:21:12 +01:00
tests mtd: make mtd_test.c a separate module 2024-08-03 08:54:00 +02:00
ubi ubi: Add a check for ubi_num 2025-02-17 09:40:27 +01:00
ftl.c
inftlcore.c mtd: inftlcore: Add error check for inftl_read_oob() 2025-04-25 10:45:29 +02:00
inftlmount.c
Kconfig
Makefile
mtd_blkdevs.c
mtdblock_ro.c
mtdblock.c
mtdchar.c
mtdconcat.c
mtdcore.c
mtdcore.h
mtdoops.c
mtdpart.c
mtdpstore.c mtd: Replace kcalloc() with devm_kcalloc() 2025-04-25 10:45:25 +02:00
mtdsuper.c
mtdswap.c
nftlcore.c
nftlmount.c
rfd_ftl.c
sm_ftl.c
sm_ftl.h
ssfdc.c