From 53dfd683382e109df0aa7fb84f402d88fad937f7 Mon Sep 17 00:00:00 2001 From: Alex Forencich Date: Sat, 11 Dec 2021 01:27:44 -0800 Subject: [PATCH] Use MQNIC_MAX_IRQ define when allocating MSI IRQs --- modules/mqnic/mqnic_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/mqnic/mqnic_main.c b/modules/mqnic/mqnic_main.c index 2d859f2cd..163f538f0 100644 --- a/modules/mqnic/mqnic_main.c +++ b/modules/mqnic/mqnic_main.c @@ -262,7 +262,7 @@ static int mqnic_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent } // Allocate MSI IRQs - mqnic->irq_count = pci_alloc_irq_vectors(pdev, 1, 32, PCI_IRQ_MSI); + mqnic->irq_count = pci_alloc_irq_vectors(pdev, 1, MQNIC_MAX_IRQ, PCI_IRQ_MSI); if (mqnic->irq_count < 0) { ret = -ENOMEM; dev_err(dev, "Failed to allocate IRQs");