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:
parent
74bb15bf00
commit
53dfd68338
@ -262,7 +262,7 @@ static int mqnic_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Allocate MSI IRQs
|
// 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) {
|
if (mqnic->irq_count < 0) {
|
||||||
ret = -ENOMEM;
|
ret = -ENOMEM;
|
||||||
dev_err(dev, "Failed to allocate IRQs");
|
dev_err(dev, "Failed to allocate IRQs");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user