From: Darren Edamura Date: Thu, 29 Mar 2018 16:37:35 +0000 (-0700) Subject: igb_uio: bind error if PCIe bridge X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=6f0841b7701b;p=dpdk.git igb_uio: bind error if PCIe bridge Probe function should exit immediately if pcie bridge detected Signed-off-by: Darren Edamura Signed-off-by: Rahul Gupta Signed-off-by: Scott Branden Signed-off-by: Ajit Khaparde Acked-by: Ferruh Yigit --- diff --git a/kernel/linux/igb_uio/igb_uio.c b/kernel/linux/igb_uio/igb_uio.c index 4cae4dd271..cbc5ab63ad 100644 --- a/kernel/linux/igb_uio/igb_uio.c +++ b/kernel/linux/igb_uio/igb_uio.c @@ -473,6 +473,11 @@ igbuio_pci_probe(struct pci_dev *dev, const struct pci_device_id *id) void *map_addr; int err; + if (pci_is_bridge(dev)) { + dev_warn(&dev->dev, "Ignoring PCI bridge device\n"); + return -ENODEV; + } + udev = kzalloc(sizeof(struct rte_uio_pci_dev), GFP_KERNEL); if (!udev) return -ENOMEM;