From: Pali Rohár Date: Thu, 25 Nov 2021 13:00:56 +0000 (+0100) Subject: irqchip/armada-370-xp: Fix return value of armada_370_xp_msi_alloc() X-Git-Tag: v4.9.293~4 X-Git-Url: https://git.fsl.cs.sunysb.edu/?a=commitdiff_plain;h=a8940242aa81ba121f6f0df0f5be36ce61ff9b4a;p=wrapfs-4.13.y.git irqchip/armada-370-xp: Fix return value of armada_370_xp_msi_alloc() commit ce20eff57361e72878a772ef08b5239d3ae102b6 upstream. IRQ domain alloc function should return zero on success. Non-zero value indicates failure. Signed-off-by: Pali Rohár Fixes: fcc392d501bd ("irqchip/armada-370-xp: Use the generic MSI infrastructure") Cc: stable@vger.kernel.org Signed-off-by: Marc Zyngier Link: https://lore.kernel.org/r/20211125130057.26705-1-pali@kernel.org Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/irqchip/irq-armada-370-xp.c b/drivers/irqchip/irq-armada-370-xp.c index 8bcee65a0b8c..6992ed087cf5 100644 --- a/drivers/irqchip/irq-armada-370-xp.c +++ b/drivers/irqchip/irq-armada-370-xp.c @@ -171,7 +171,7 @@ static int armada_370_xp_msi_alloc(struct irq_domain *domain, unsigned int virq, NULL, NULL); } - return hwirq; + return 0; } static void armada_370_xp_msi_free(struct irq_domain *domain,