OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16f73eb
)
PCI: xgene: Fix platform_get_irq() error handling
author
Fabio Estevam
<fabio.estevam@nxp.com>
Thu, 31 Aug 2017 17:52:06 +0000
(14:52 -0300)
committer
Bjorn Helgaas
<bhelgaas@google.com>
Thu, 7 Sep 2017 13:52:42 +0000
(08:52 -0500)
When platform_get_irq() fails we should propagate the real error value
instead of always returning -EINVAL.
Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Cc: Duc Dang <dhdang@apm.com>
drivers/pci/host/pci-xgene-msi.c
patch
|
blob
|
history
diff --git
a/drivers/pci/host/pci-xgene-msi.c
b/drivers/pci/host/pci-xgene-msi.c
index
f1b633b
..
1f42a20
100644
(file)
--- a/
drivers/pci/host/pci-xgene-msi.c
+++ b/
drivers/pci/host/pci-xgene-msi.c
@@
-489,7
+489,7
@@
static int xgene_msi_probe(struct platform_device *pdev)
if (virt_msir < 0) {
dev_err(&pdev->dev, "Cannot translate IRQ index %d\n",
irq_index);
- rc =
-EINVAL
;
+ rc =
virt_msir
;
goto error;
}
xgene_msi->msi_groups[irq_index].gic_irq = virt_msir;