Merge tag 'irq_urgent_for_v6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull irq fix from Borislav Petkov:

- Remove an over-zealous sanity check of the array of MSI-X vectors to
be allocated for a device

* tag 'irq_urgent_for_v6.3' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
PCI/MSI: Remove over-zealous hardware size check in pci_msix_validate_entries()

Changed files
+2 -7
drivers
pci
msi
+2 -7
drivers/pci/msi/msi.c
··· 750 750 return ret; 751 751 } 752 752 753 - static bool pci_msix_validate_entries(struct pci_dev *dev, struct msix_entry *entries, 754 - int nvec, int hwsize) 753 + static bool pci_msix_validate_entries(struct pci_dev *dev, struct msix_entry *entries, int nvec) 755 754 { 756 755 bool nogap; 757 756 int i, j; ··· 761 762 nogap = pci_msi_domain_supports(dev, MSI_FLAG_MSIX_CONTIGUOUS, DENY_LEGACY); 762 763 763 764 for (i = 0; i < nvec; i++) { 764 - /* Entry within hardware limit? */ 765 - if (entries[i].entry >= hwsize) 766 - return false; 767 - 768 765 /* Check for duplicate entries */ 769 766 for (j = i + 1; j < nvec; j++) { 770 767 if (entries[i].entry == entries[j].entry) ··· 800 805 if (hwsize < 0) 801 806 return hwsize; 802 807 803 - if (!pci_msix_validate_entries(dev, entries, nvec, hwsize)) 808 + if (!pci_msix_validate_entries(dev, entries, nvec)) 804 809 return -EINVAL; 805 810 806 811 if (hwsize < nvec) {