Re: [PATCH] PCI: iproc: Fix return value of iproc_msi_irq_domain_alloc()

From
Ray Jui <ray.jui@broadcom.com>
Date
2021-03-03 20:56:07
Also in
lkml
Reply to
Pali Rohár, 2021-03-03

On 3/3/2021 6:22 AM, Pali Rohár wrote:
quoted hunk ↗ jump to hunk
IRQ domain alloc function should return zero on success. Non-zero value
indicates failure.

Signed-off-by: Pali Rohár <pali@kernel.org>
Fixes: fc54bae28818 ("PCI: iproc: Allow allocation of multiple MSIs")
---
 drivers/pci/controller/pcie-iproc-msi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/pci/controller/pcie-iproc-msi.c b/drivers/pci/controller/pcie-iproc-msi.c
index 908475d27e0e..eede4e8f3f75 100644
--- a/drivers/pci/controller/pcie-iproc-msi.c
+++ b/drivers/pci/controller/pcie-iproc-msi.c
@@ -271,7 +271,7 @@ static int iproc_msi_irq_domain_alloc(struct irq_domain *domain,
 				    NULL, NULL);
 	}
 
-	return hwirq;
+	return 0;
 }
 
 static void iproc_msi_irq_domain_free(struct irq_domain *domain,
Looks good to me. Thanks for the fix.

Acked-by: Ray Jui <ray.jui@broadcom.com>

Attachments

Thread (5 messages) 5 messages, 5 authors, last reply 2021-03-22
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help