Message ID | 20141202212616.GA20069@google.com |
---|---|
State | Not Applicable |
Headers | show |
diff --git a/drivers/pci/iov.c b/drivers/pci/iov.c index 9dce7c5..5f98707 100644 --- a/drivers/pci/iov.c +++ b/drivers/pci/iov.c @@ -418,6 +418,7 @@ static int sriov_init(struct pci_dev *dev, int pos) struct pci_dev *pdev; if (pci_pcie_type(dev) != PCI_EXP_TYPE_RC_END && + pci_pcie_type(dev) != PCI_EXP_TYPE_LEG_END && pci_pcie_type(dev) != PCI_EXP_TYPE_ENDPOINT) return -ENODEV;