RE: [patch V3 29/33] PCI/MSI: Provide pci_ims_alloc/free_irq()

From: Tian, Kevin
Date: Sun Nov 27 2022 - 23:47:54 EST


> From: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
> Sent: Friday, November 25, 2022 7:27 AM
> +/**
> + * pci_ims_free_irq - Allocate an interrupt on a PCI/IMS interrupt domain
> + * which was allocated via pci_ims_alloc_irq()
> + * @dev: The PCI device to operate on
> + * @map: A struct msi_map describing the interrupt to free as
> + * returned from pci_ims_alloc_irq()
> + */
> +void pci_ims_free_irq(struct pci_dev *dev, struct msi_map map)
> +{
> + if (WARN_ON_ONCE(map.index < 0 || !map.virq))
> + return;

"map.virq <= 0"