On Fri, Nov 11, 2022 at 02:54:20PM +0100, Thomas Gleixner wrote: > There are no associated MSI descriptors in the requested range when the MSI > descriptor allocation fails. Use MSI_DESC_ALL as the filter which prepares > the next step to get rid of the filter for freeing. > > Signed-off-by: Thomas Gleixner <t...@linutronix.de> > --- > kernel/irq/msi.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > --- a/kernel/irq/msi.c > +++ b/kernel/irq/msi.c > @@ -120,7 +120,7 @@ static int msi_add_simple_msi_descs(stru > fail_mem: > ret = -ENOMEM; > fail: > - msi_free_msi_descs_range(dev, MSI_DESC_NOTASSOCIATED, index, last); > + msi_free_msi_descs_range(dev, MSI_DESC_ALL, index, last); > return ret; > } > > Reviewed-by: Ashok Raj <ashok....@intel.com>
- [patch 09/39] powerpc/pseries/msi: Use msi_domain_ops::msi... Thomas Gleixner
- Re: [patch 09/39] powerpc/pseries/msi: Use msi_domain... Jason Gunthorpe
- [patch 15/39] PCI/MSI: Get rid of PCI_MSI_IRQ_DOMAIN Thomas Gleixner
- Re: [patch 15/39] PCI/MSI: Get rid of PCI_MSI_IRQ_DOM... Bjorn Helgaas
- Re: [patch 15/39] PCI/MSI: Get rid of PCI_MSI_IRQ... Thomas Gleixner
- Re: [patch 15/39] PCI/MSI: Get rid of PCI_MSI_IRQ_DOM... Jason Gunthorpe
- [patch 14/39] PCI/MSI: Let the MSI core free descriptors Thomas Gleixner
- Re: [patch 14/39] PCI/MSI: Let the MSI core free desc... Bjorn Helgaas
- Re: [patch 14/39] PCI/MSI: Let the MSI core free desc... Jason Gunthorpe
- [patch 04/39] genirq/msi: Use MSI_DESC_ALL in msi_add_simp... Thomas Gleixner
- Re: [patch 04/39] genirq/msi: Use MSI_DESC_ALL in msi... Ashok Raj
- Re: [patch 04/39] genirq/msi: Use MSI_DESC_ALL in msi... Jason Gunthorpe
- [patch 07/39] genirq/msi: Make __msi_domain_alloc_irqs() s... Thomas Gleixner
- Re: [patch 07/39] genirq/msi: Make __msi_domain_alloc... Jason Gunthorpe
- [patch 01/39] PCI/MSI: Check for MSI enabled in __pci_msix... Thomas Gleixner
- Re: [patch 01/39] PCI/MSI: Check for MSI enabled in _... Ashok Raj
- Re: [patch 01/39] PCI/MSI: Check for MSI enabled ... Thomas Gleixner
- Re: [patch 01/39] PCI/MSI: Check for MSI enabled in _... Bjorn Helgaas
- Re: [patch 01/39] PCI/MSI: Check for MSI enabled in _... Jason Gunthorpe
- RE: [patch 01/39] PCI/MSI: Check for MSI enabled in _... Tian, Kevin