diff options
-rw-r--r-- | drivers/pci/msi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/pci/msi.c b/drivers/pci/msi.c index 7ffac27d5d4a..f2725710593a 100644 --- a/drivers/pci/msi.c +++ b/drivers/pci/msi.c | |||
@@ -691,8 +691,8 @@ int pci_msix_table_size(struct pci_dev *dev) | |||
691 | * indicates the successful configuration of MSI-X capability structure | 691 | * indicates the successful configuration of MSI-X capability structure |
692 | * with new allocated MSI-X irqs. A return of < 0 indicates a failure. | 692 | * with new allocated MSI-X irqs. A return of < 0 indicates a failure. |
693 | * Or a return of > 0 indicates that driver request is exceeding the number | 693 | * Or a return of > 0 indicates that driver request is exceeding the number |
694 | * of irqs available. Driver should use the returned value to re-send | 694 | * of irqs or MSI-X vectors available. Driver should use the returned value to |
695 | * its request. | 695 | * re-send its request. |
696 | **/ | 696 | **/ |
697 | int pci_enable_msix(struct pci_dev* dev, struct msix_entry *entries, int nvec) | 697 | int pci_enable_msix(struct pci_dev* dev, struct msix_entry *entries, int nvec) |
698 | { | 698 | { |
@@ -708,7 +708,7 @@ int pci_enable_msix(struct pci_dev* dev, struct msix_entry *entries, int nvec) | |||
708 | 708 | ||
709 | nr_entries = pci_msix_table_size(dev); | 709 | nr_entries = pci_msix_table_size(dev); |
710 | if (nvec > nr_entries) | 710 | if (nvec > nr_entries) |
711 | return -EINVAL; | 711 | return nr_entries; |
712 | 712 | ||
713 | /* Check for any invalid entries */ | 713 | /* Check for any invalid entries */ |
714 | for (i = 0; i < nvec; i++) { | 714 | for (i = 0; i < nvec; i++) { |