Files
Christophe JAILLET 0cd36f52fe mtd: rawnand: nuvoton: Fix an error handling path in ma35_nand_chips_init()
[ Upstream commit 1eae113dd5 ]

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
..
2025-03-04 12:07:08 +01:00