mirror of
https://github.com/torvalds/linux.git
synced 2026-06-06 21:45:45 +02:00
PCI: aardvark: Fix return value of MSI domain .alloc() method
commite4313be159upstream. MSI domain callback .alloc() (implemented by advk_msi_irq_domain_alloc() function) should return zero on success, since non-zero value indicates failure. When the driver was converted to generic MSI API in commitf21a8b1b68("PCI: aardvark: Move to MSI handling using generic MSI support"), it was converted so that it returns hwirq number. Fix this. Link: https://lore.kernel.org/r/20211028185659.20329-3-kabel@kernel.org Fixes:f21a8b1b68("PCI: aardvark: Move to MSI handling using generic MSI support") Signed-off-by: Pali Rohár <pali@kernel.org> Signed-off-by: Marek Behún <kabel@kernel.org> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
6a0da19be5
commit
2ad10bbf84
|
|
@ -1180,7 +1180,7 @@ static int advk_msi_irq_domain_alloc(struct irq_domain *domain,
|
||||||
domain->host_data, handle_simple_irq,
|
domain->host_data, handle_simple_irq,
|
||||||
NULL, NULL);
|
NULL, NULL);
|
||||||
|
|
||||||
return hwirq;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void advk_msi_irq_domain_free(struct irq_domain *domain,
|
static void advk_msi_irq_domain_free(struct irq_domain *domain,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user