[PATCH v2 0/3] PCI: endpoint: Doorbell-related fixes

Koichiro Den <[email protected]>
Newsgroups dev.linux.lists.ntb,org.kernel.vger.linux-kernel,org.kernel.vger.linux-pci
Message-ID <[email protected]>
Hi,

This is a small fix-only series related to the previous (v6)
doorbell-related series:
https://lore.kernel.org/linux-pci/[email protected]/

These patches address a few independent fixes in pci-epf-vntb,
pci-epf-test and pci-ep-msi:

  1/3 fixes IRQ unwind in MSI doorbell setup (pci-epf-vntb)
  2/3 avoids free_irq() if doorbell IRQ was not successfully requested
      (pci-epf-test)
  3/3 fixes error unwind and prevent double allocation in
      pci_epf_alloc_doorbell() (pci-ep-msi)

These fixes were originally intended to be included in the next revision
of the main series. However, doing so would have grown the v7 series to
around 15 patches, so I am posting them separately to keep the feature
series manageable.

Kind regards,
Koichiro

---
Changes in v2:
  - Removed a minor refactoring part from [PATCH 1/4], keeping the iterator type
    int, rather than changing it to unsigned int.
  - Dropped [PATCH 2/4] (bounds check). It's a theoretical future-proofing guard
    rather than a fix for today.
  - Dropped the db_irq_requested flag and instead moved free_irq() to the
    appropriate call sites.

v1: https://lore.kernel.org/linux-pci/[email protected]/
---

Koichiro Den (3):
  PCI: endpoint: pci-epf-vntb: Fix MSI doorbell IRQ unwind
  PCI: endpoint: pci-epf-test: Don't free doorbell IRQ unless requested
  PCI: endpoint: pci-ep-msi: Fix error unwind and prevent double alloc

 drivers/pci/endpoint/functions/pci-epf-test.c |  8 +++++---
 drivers/pci/endpoint/functions/pci-epf-vntb.c | 12 ++++++------
 drivers/pci/endpoint/pci-ep-msi.c             |  5 +++++
 3 files changed, 16 insertions(+), 9 deletions(-)

-- 
2.51.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.