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

Koichiro Den
2026-02-15T15:09:22Z

Hi,

This is a small fix-only series related to the previous (v6)
doorbell-related series:
https://lore.kernel.org/linux-pci/20260209125316.2132589-1-den@valinux.co.jp/

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

1/4 fixes IRQ unwind in MSI doorbell setup (pci-epf-vntb)
2/4 adds a bounds check for doorbell BAR offset (pci-epf-test)
3/4 avoids free_irq() if doorbell IRQ was not successfully requested
(pci-epf-test)
4/4 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

Koichiro Den (4):
PCI: endpoint: pci-epf-vntb: Fix MSI doorbell IRQ unwind
PCI: endpoint: pci-epf-test: Sanity-check doorbell offset within BAR
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 | 12 +++++++++++-
drivers/pci/endpoint/functions/pci-epf-vntb.c | 11 ++++++-----
drivers/pci/endpoint/pci-ep-msi.c | 5 +++++
3 files changed, 22 insertions(+), 6 deletions(-)

--
2.51.0