We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c159965 commit a6dcfe0Copy full SHA for a6dcfe0
drivers/scsi/qla2xxx/qla_isr.c
@@ -3952,10 +3952,12 @@ qla24xx_enable_msix(struct qla_hw_data *ha, struct rsp_que *rsp)
3952
if (USER_CTRL_IRQ(ha) || !ha->mqiobase) {
3953
/* user wants to control IRQ setting for target mode */
3954
ret = pci_alloc_irq_vectors(ha->pdev, min_vecs,
3955
- ha->msix_count, PCI_IRQ_MSIX);
+ min((u16)ha->msix_count, (u16)num_online_cpus()),
3956
+ PCI_IRQ_MSIX);
3957
} else
3958
ret = pci_alloc_irq_vectors_affinity(ha->pdev, min_vecs,
- ha->msix_count, PCI_IRQ_MSIX | PCI_IRQ_AFFINITY,
3959
3960
+ PCI_IRQ_MSIX | PCI_IRQ_AFFINITY,
3961
&desc);
3962
3963
if (ret < 0) {
0 commit comments