]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: rawnand: intel: Add missing of_node_put() in ebu_nand_probe()
authorYang Yingliang <yangyingliang@huawei.com>
Sat, 24 Sep 2022 13:10:10 +0000 (21:10 +0800)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 18 Oct 2022 08:28:15 +0000 (10:28 +0200)
commitc1f206c2e8a5756935384e88202e46a77aacdf50
treead5c0443a15212742de219090068e326f465235d
parent8ab3d383cef79e438dd842f7048d78a6ff3867bc
mtd: rawnand: intel: Add missing of_node_put() in ebu_nand_probe()

The 'chip_np' returned by of_get_next_child() with refcount decremented,
of_node_put() need be called in error path to decrease the refcount.

Fixes: 35b4e26c3540 ("mtd: rawnand: intel: Read the chip-select line from the correct OF node")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20220924131010.957117-1-yangyingliang@huawei.com
drivers/mtd/nand/raw/intel-nand-controller.c