| From | "Tian, Kevin" <> | Subject | RE: [patch V3 29/33] PCI/MSI: Provide pci_ims_alloc/free_irq() | Date | Mon, 28 Nov 2022 04:47:42 +0000 |
| |
> From: Thomas Gleixner <tglx@linutronix.de> > 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"
|