commit | 862290f9e23c39051e59bf12ce65707a8ec8b911 | [log] [tgz] |
---|---|---|
author | Christoph Hellwig <hch@lst.de> | Wed Feb 01 14:41:42 2017 +0100 |
committer | Bjorn Helgaas <bhelgaas@google.com> | Fri Feb 10 16:05:06 2017 -0600 |
tree | 992c822cae2bf5a70159fdf044732c4e6baf3b0b | |
parent | 699c4cec238731a4c466f73fe6e9e45ab6f49a41 [diff] |
PCI/MSI: Check that we have a legacy interrupt line before using it It seems like there are some devices (e.g. the PCIe root port driver) that may not always have a INTx interrupt. Check for dev->irq before returning a legacy interrupt in pci_irq_alloc_vectors to properly handle this case. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>