Skip to content

Commit

Permalink
irqchip/xilinx: Fill error code when irq domain registration fails
Browse files Browse the repository at this point in the history
There is no ret filled in case of irq_domain_add_linear() failure.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Stefan Asserhall <stefan.asserhall@xilinx.com>
Link: https://lore.kernel.org/r/20200317125600.15913-3-mubin.usman.sayyed@xilinx.com
  • Loading branch information
Michal Simek authored and Marc Zyngier committed Mar 22, 2020
1 parent 67862a3 commit c74038b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/irqchip/irq-xilinx-intc.c
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ static int __init xilinx_intc_of_init(struct device_node *intc,
&xintc_irq_domain_ops, irqc);
if (!irqc->root_domain) {
pr_err("irq-xilinx: Unable to create IRQ domain\n");
ret = -EINVAL;
goto error;
}

Expand Down

0 comments on commit c74038b

Please sign in to comment.