PCI/MSI: Check for MSI enabled in __pci_msix_enable()
authorThomas Gleixner <tglx@linutronix.de>
Fri, 11 Nov 2022 13:54:15 +0000 (14:54 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 17 Nov 2022 14:15:18 +0000 (15:15 +0100)
commitfe97f59a78fefda6c4a8c8ee6a070b1f769fc801
tree2519e100a301b64631efc9cd063656d669ebea61
parentfd19ce77993a49f3afc56bb4cae7eafb1ec69e0c
PCI/MSI: Check for MSI enabled in __pci_msix_enable()

PCI/MSI and PCI/MSI-X are mutually exclusive, but the MSI-X enable code
lacks a check for already enabled MSI.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Ashok Raj <ashok.raj@intel.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://lore.kernel.org/r/20221111122013.653556720@linutronix.de
drivers/pci/msi/msi.c