irqchip/gic-v2m: Fix refcount leak in gicv2m_of_init
Subsystems (2)
PATCH 1/1 irqchip/gic-v2m: Fix refcount leak in gicv2m_of_init
Add the missing of_node_put() to release the refcount incremented by of_find_matching_node().
Signed-off-by Ma Ke <[email protected]>
--- drivers/irqchip/irq-gic-v2m.c | 1 + 1 file changed, 1 insertion(+)
drivers/irqchip/irq-gic-v2m.c +1 -0
@@ -427,6 +427,7 @@ static int __init gicv2m_of_init(struct fwnode_handle *parent_handle, ret =of_address_to_resource (child,0 , &res);if (ret) {pr_err ("Failed to allocate v2m resource.\n" ); +of_node_put (child);break ; }
Signature · 1 line
2.37.2