diff options
author | Erick Karanja <karanja99erick@gmail.com> | 2025-09-22 14:07:27 +0300 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2025-09-29 17:55:22 +0200 |
commit | 8ed4728eb9f10b57c3eb02e0f6933a89ffcb8a91 (patch) | |
tree | 67531e8171ae04db95974edfda98f64ae0b82729 /scripts/lib/kdoc/kdoc_parser.py | |
parent | 3148d0e5b1c5733d69ec51b70c8280e46488750a (diff) |
mtd: rawnand: atmel: Fix error handling path in atmel_nand_controller_add_nands
In case of a jump to the err label due to atmel_nand_create() or
atmel_nand_controller_add_nand() failure, the reference to nand_np
need to be released
Use for_each_child_of_node_scoped() to fix the issue.
Fixes: f88fc122cc34 ("mtd: nand: Cleanup/rework the atmel_nand driver")
Signed-off-by: Erick Karanja <karanja99erick@gmail.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_parser.py')
0 files changed, 0 insertions, 0 deletions