Patchwork [7/9] PCI/MSI/s390: Make return values only 0/-errno when MSIs allocated

login
register
mail settings
Submitter Alexander Gordeev
Date Sept. 9, 2013, 3:28 p.m.
Message ID <20130909152820.GI24962@dhcp-26-207.brq.redhat.com>
Download mbox | patch
Permalink /patch/273603/
State Changes Requested
Headers show

Comments

Alexander Gordeev - Sept. 9, 2013, 3:28 p.m.
Signed-off-by: Alexander Gordeev <agordeev@redhat.com>
---
 arch/s390/pci/pci.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/arch/s390/pci/pci.c b/arch/s390/pci/pci.c
index 61a3c2c..45a1875 100644
--- a/arch/s390/pci/pci.c
+++ b/arch/s390/pci/pci.c
@@ -426,7 +426,7 @@  int arch_setup_msi_irqs(struct pci_dev *pdev, int nvec, int type)
 
 	pr_debug("%s: requesting %d MSI-X interrupts...", __func__, nvec);
 	if (type == PCI_CAP_ID_MSI && nvec > 1)
-		return 1;
+		return -EINVAL;
 	msi_vecs = min(nvec, ZPCI_MSI_VEC_MAX);
 	msi_vecs = min_t(unsigned int, msi_vecs, CONFIG_PCI_NR_MSI);