* [PATCH] PCI/portdrv: Use ENOSPC instead of EIO
@ 2022-11-23 6:45 Angus Chen
0 siblings, 0 replies; only message in thread
From: Angus Chen @ 2022-11-23 6:45 UTC (permalink / raw)
To: bhelgaas, sr, pali; +Cc: linux-pci, linux-kernel, Angus Chen
If pcie_message_numbers can't provide the vector cap
which pme&aer&dpc requested,it should be return ENOSPC for better.
No functional change intended.
Signed-off-by: Angus Chen <angus.chen@jaguarmicro.com>
---
drivers/pci/pcie/portdrv_core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/pci/pcie/portdrv_core.c b/drivers/pci/pcie/portdrv_core.c
index 1ac7fec47d6f..473a70210313 100644
--- a/drivers/pci/pcie/portdrv_core.c
+++ b/drivers/pci/pcie/portdrv_core.c
@@ -113,7 +113,7 @@ static int pcie_port_enable_irq_vec(struct pci_dev *dev, int *irqs, int mask)
nvec = pcie_message_numbers(dev, mask, &pme, &aer, &dpc);
if (nvec > nr_entries) {
pci_free_irq_vectors(dev);
- return -EIO;
+ return -ENOSPC;
}
/*
--
2.25.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2022-11-23 6:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-23 6:45 [PATCH] PCI/portdrv: Use ENOSPC instead of EIO Angus Chen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).