Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a3689e69 authored by Pali Rohár's avatar Pali Rohár Committed by Greg Kroah-Hartman
Browse files

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: default avatarPali Rohár <pali@kernel.org>
Fixes: fcc392d5 ("irqchip/armada-370-xp: Use the generic MSI infrastructure")
Cc: stable@vger.kernel.org
Signed-off-by: default avatarMarc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20211125130057.26705-1-pali@kernel.org


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8c163a14
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -250,7 +250,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,