diff options
| -rw-r--r-- | drivers/pci/hotplug/cpqphp_core.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/pci/hotplug/cpqphp_core.c b/drivers/pci/hotplug/cpqphp_core.c index b3e5580c837b..4952c3b9379d 100644 --- a/drivers/pci/hotplug/cpqphp_core.c +++ b/drivers/pci/hotplug/cpqphp_core.c | |||
| @@ -828,7 +828,14 @@ static int cpqhpc_probe(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
| 828 | pci_name(pdev), err); | 828 | pci_name(pdev), err); |
| 829 | return err; | 829 | return err; |
| 830 | } | 830 | } |
| 831 | |||
| 831 | bus = pdev->subordinate; | 832 | bus = pdev->subordinate; |
| 833 | if (!bus) { | ||
| 834 | dev_notice(&pdev->dev, "the device is not a bridge, " | ||
| 835 | "skipping\n"); | ||
| 836 | rc = -ENODEV; | ||
| 837 | goto err_disable_device; | ||
| 838 | } | ||
| 832 | 839 | ||
| 833 | /* Need to read VID early b/c it's used to differentiate CPQ and INTC | 840 | /* Need to read VID early b/c it's used to differentiate CPQ and INTC |
| 834 | * discovery | 841 | * discovery |
