Message ID | 20230228174019.4004581-1-jjhiblot@traphandler.com |
---|---|
State | New |
Headers | show |
Series | of: property: Add missing of_node_get() in parse_interrupt() | expand |
diff --git a/drivers/of/property.c b/drivers/of/property.c index 134cfc980b70b..1f23bcb765c4e 100644 --- a/drivers/of/property.c +++ b/drivers/of/property.c @@ -1380,7 +1380,10 @@ static struct device_node *parse_interrupts(struct device_node *np, strcmp(prop_name, "interrupts-extended")) return NULL; - return of_irq_parse_one(np, index, &sup_args) ? NULL : sup_args.np; + if (of_irq_parse_one(np, index, &sup_args)) + return NULL; + + return of_node_get(sup_args.np); } static const struct supplier_bindings of_supplier_bindings[] = {