1
0
mirror of https://github.com/corundum/corundum.git synced 2025-01-16 08:12:53 +08:00

Use MQNIC_MAX_IRQ define when allocating MSI IRQs

This commit is contained in:
Alex Forencich 2021-12-11 01:27:44 -08:00
parent 74bb15bf00
commit 53dfd68338

View File

@ -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");