Skip to content

Commit ce20eff

Browse files
paliMarc Zyngier
authored andcommitted
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: fcc392d ("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
1 parent fa55b7d commit ce20eff

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/irqchip/irq-armada-370-xp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ static int armada_370_xp_msi_alloc(struct irq_domain *domain, unsigned int virq,
250250
NULL, NULL);
251251
}
252252

253-
return hwirq;
253+
return 0;
254254
}
255255

256256
static void armada_370_xp_msi_free(struct irq_domain *domain,

0 commit comments

Comments
 (0)