Skip to content

Commit c74038b

Browse files
Michal SimekMarc Zyngier
authored andcommitted
irqchip/xilinx: Fill error code when irq domain registration fails
There is no ret filled in case of irq_domain_add_linear() failure. Signed-off-by: Michal Simek <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Reviewed-by: Stefan Asserhall <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 67862a3 commit c74038b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/irqchip/irq-xilinx-intc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ static int __init xilinx_intc_of_init(struct device_node *intc,
228228
&xintc_irq_domain_ops, irqc);
229229
if (!irqc->root_domain) {
230230
pr_err("irq-xilinx: Unable to create IRQ domain\n");
231+
ret = -EINVAL;
231232
goto error;
232233
}
233234

0 commit comments

Comments
 (0)