projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4fe0395
)
PCI/MSI: Return failure when msix_setup_entries() fails
author
Christophe JAILLET
<christophe.jaillet@wanadoo.fr>
Fri, 27 Jan 2017 15:14:53 +0000
(16:14 +0100)
committer
Bjorn Helgaas
<helgaas@kernel.org>
Fri, 10 Feb 2017 20:10:24 +0000
(14:10 -0600)
If alloc_msi_entry() fails, we free resources and set ret = -ENOMEM.
However, msix_setup_entries() returns 0 unconditionally. Return the error
code instead.
Fixes: e75eafb9b039 ("genirq/msi: Switch to new irq spreading infrastructure")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/msi.c
patch
|
blob
|
history
diff --git
a/drivers/pci/msi.c
b/drivers/pci/msi.c
index b6785c8be44dcea09db1e6f2238db3001e34b6ce..0f77b38f03ddf0f2c5349619593e09f9640da628 100644
(file)
--- a/
drivers/pci/msi.c
+++ b/
drivers/pci/msi.c
@@
-731,7
+731,7
@@
static int msix_setup_entries(struct pci_dev *dev, void __iomem *base,
ret = 0;
out:
kfree(masks);
- return
0
;
+ return
ret
;
}
static void msix_program_entries(struct pci_dev *dev,