summaryrefslogtreecommitdiff
path: root/include/linux/msi.h
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2017-01-27 16:14:53 +0100
committerBjorn Helgaas <helgaas@kernel.org>2017-02-10 14:10:24 -0600
commit3adfb572f2978a980b250a9e1a56f84f3a031001 (patch)
tree6aaa22aea5c33a8442d99f8c7c26cacec1d005fc /include/linux/msi.h
parent4fe0395550aeb6709ea5332f46de3644aef7d328 (diff)
PCI/MSI: Return failure when msix_setup_entries() fails
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>
Diffstat (limited to 'include/linux/msi.h')
0 files changed, 0 insertions, 0 deletions