mirror_ubuntu-kernels/drivers/pci/msi
Thomas Gleixner bab65e48cb PCI/MSI: Sanitize MSI-X checks
There is no point in doing the same sanity checks over and over in a loop
during MSI-X enablement. Put them in front of the loop and return early
when they fail.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://lore.kernel.org/r/20221111122015.516946468@linutronix.de
2022-11-17 15:15:22 +01:00
..
api.c PCI/MSI: Move pci_msi_restore_state() to api.c 2022-11-17 15:15:21 +01:00
irqdomain.c PCI/MSI: Let the MSI core free descriptors 2022-11-17 15:15:19 +01:00
legacy.c PCI/MSI: Prevent UAF in error path 2022-01-21 02:14:46 +01:00
Makefile PCI/MSI: Move pci_disable_msi() to api.c 2022-11-17 15:15:20 +01:00
msi.c PCI/MSI: Sanitize MSI-X checks 2022-11-17 15:15:22 +01:00
msi.h PCI/MSI: Move pci_msi_restore_state() to api.c 2022-11-17 15:15:21 +01:00
pcidev_msi.c