> On Mon, 9 Nov 2020 17:39:17 +0530 Srujana Challa wrote:
> > +   err = pci_alloc_irq_vectors(pdev, RVU_PF_INT_VEC_CNT,
> > +                               RVU_PF_INT_VEC_CNT, PCI_IRQ_MSIX);
> 
> I don't see any pci_free_irq_vectors() in this patch

This will be handled by the devres managed PCI interface.

Copied code for reference:

static void pcim_release(struct device *gendev, void *res)
{
    struct pci_dev *dev = to_pci_dev(gendev);
    struct pci_devres *this = res;
    int i;

    if (dev->msi_enabled)
        pci_disable_msi(dev);
    if (dev->msix_enabled)
        pci_disable_msix(dev);

    ....
}

Reply via email to