linux/drivers/mtd
Wentao Liang b79fe18299 mtd: rawnand: Add status chack in r852_ready()
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: 50a487e771 ("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>
2025-04-07 09:02:49 +02:00
..
chips mtd: cfi_cmdset_0002: remove redundant assignment to variable ret 2024-10-21 11:57:43 +02:00
devices mtd: mchp48l640: Use str_enable_disable() in mchp48l640_write_prepare() 2025-03-18 17:18:51 +01:00
hyperbus mtd: hyperbus: Use of_property_present() for non-boolean properties 2025-01-15 19:12:19 +01:00
lpddr mtd: Switch back to struct platform_driver::remove() 2024-10-21 11:58:07 +02:00
maps mtd: Switch back to struct platform_driver::remove() 2024-10-21 11:58:07 +02:00
nand mtd: rawnand: Add status chack in r852_ready() 2025-04-07 09:02:49 +02:00
parsers mtd: parsers: bcm47xxpart: make read-only array possible_nvram_sizes static const 2024-08-23 19:25:49 +02:00
spi-nor * MTD changes: 2025-03-26 10:28:36 -07:00
tests mtd: tests: Include <linux/prandom.h> instead of <linux/random.h> 2024-10-03 18:19:52 +02:00
ubi block: remove unused parameter 'q' parameter in __blk_rq_map_sg() 2025-03-13 05:46:19 -06:00
Kconfig
Makefile
ftl.c
inftlcore.c mtd: inftlcore: Add error check for inftl_read_oob() 2025-04-07 09:02:31 +02:00
inftlmount.c
mtd_blkdevs.c block: force noio scope in blk_mq_freeze_queue 2025-01-31 07:20:08 -07:00
mtdblock.c
mtdblock_ro.c
mtdchar.c
mtdconcat.c mtd: concat: Use kmemdup_array instead of kmemdup for multiple allocation 2024-08-23 19:25:51 +02:00
mtdcore.c mtd: Fix error handling in mtd_device_parse_register() error path 2025-03-04 12:07:30 +01:00
mtdcore.h
mtdoops.c mtd: mtdoops: Fix kmsgdump parameter renaming. 2024-07-22 17:56:22 +02:00
mtdpart.c mtd: mtdpart: Do not supply NULL to printf() 2025-03-18 17:18:19 +01:00
mtdpstore.c mtd: Add check for devm_kcalloc() 2025-03-04 12:07:08 +01:00
mtdsuper.c
mtdswap.c
nftlcore.c
nftlmount.c
rfd_ftl.c
sm_ftl.c treewide: Switch/rename to timer_delete[_sync]() 2025-04-05 10:30:12 +02:00
sm_ftl.h
ssfdc.c