linux-yocto/drivers/mtd
Christophe JAILLET 0cd36f52fe mtd: rawnand: nuvoton: Fix an error handling path in ma35_nand_chips_init()
[ Upstream commit 1eae113dd5ff5192cfd3e11b6ab7b96193b42c01 ]

If a ma35_nand_chip_init() call fails, then a reference to 'nand_np' still
needs to be released.

Use for_each_child_of_node_scoped() to fix the issue.

Fixes: 5abb5d414d ("mtd: rawnand: nuvoton: add new driver for the Nuvoton MA35 SoC")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-09-19 16:37:35 +02:00
..
chips
devices mtd: Do not enable by default during compile testing 2025-04-28 10:37:19 +02:00
hyperbus mtd: hyperbus: Use of_property_present() for non-boolean properties 2025-01-15 19:12:19 +01:00
lpddr
maps
nand mtd: rawnand: nuvoton: Fix an error handling path in ma35_nand_chips_init() 2025-09-19 16:37:35 +02:00
parsers
spi-nor mtd: spi-nor: Fix spi_nor_try_unlock_all() 2025-08-28 16:34:24 +02:00
tests
ubi block: remove unused parameter 'q' parameter in __blk_rq_map_sg() 2025-03-13 05:46:19 -06:00
ftl.c mtd: fix possible integer overflow in erase_xfer() 2025-08-15 16:38:58 +02:00
inftlcore.c mtd: inftlcore: Add error check for inftl_read_oob() 2025-04-07 09:02:31 +02:00
inftlmount.c
Kconfig
Makefile
mtd_blkdevs.c block: force noio scope in blk_mq_freeze_queue 2025-01-31 07:20:08 -07:00
mtdblock_ro.c
mtdblock.c
mtdchar.c Revert "mtd: core: always create master device" 2025-06-18 11:18:23 +02:00
mtdconcat.c
mtdcore.c Revert "mtd: core: always create master device" 2025-06-18 11:18:23 +02:00
mtdcore.h Revert "mtd: core: always create master device" 2025-06-18 11:18:23 +02:00
mtdoops.c
mtdpart.c Revert "mtd: core: always create master device" 2025-06-18 11:18:23 +02: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, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
sm_ftl.h
ssfdc.c