Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

irqchip/armada-370-xp: Fix return value of armada_370_xp_msi_alloc()

IRQ domain alloc function should return zero on success. Non-zero value
indicates failure.

Signed-off-by: Pali Rohár <pali@kernel.org>
Fixes: fcc392d501bd ("irqchip/armada-370-xp: Use the generic MSI infrastructure")
Cc: stable@vger.kernel.org
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20211125130057.26705-1-pali@kernel.org

authored by

Pali Rohár and committed by
Marc Zyngier
ce20eff5 fa55b7dc

+1 -1
+1 -1
drivers/irqchip/irq-armada-370-xp.c
··· 250 250 NULL, NULL); 251 251 } 252 252 253 - return hwirq; 253 + return 0; 254 254 } 255 255 256 256 static void armada_370_xp_msi_free(struct irq_domain *domain,